ExecuteWriter executes a templates and write its results to the w writer layout here is useless.
(w io.Writer, filename string, _ string, bindingData interface{})
| 318 | // ExecuteWriter executes a templates and write its results to the w writer |
| 319 | // layout here is useless. |
| 320 | func (s *DjangoEngine) ExecuteWriter(w io.Writer, filename string, _ string, bindingData interface{}) error { |
| 321 | // re-parse the templates if reload is enabled. |
| 322 | if s.reload { |
| 323 | if err := s.Load(); err != nil { |
| 324 | return err |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | if tmpl := s.fromCache(filename); tmpl != nil { |
| 329 | return tmpl.ExecuteWriter(getPongoContext(bindingData), w) |
| 330 | } |
| 331 | |
| 332 | return ErrNotExist{Name: filename, IsLayout: false, Data: bindingData} |
| 333 | } |
nothing calls this directly
no test coverage detected