MCPcopy Create free account
hub / github.com/kataras/iris / ExecuteWriter

Method ExecuteWriter

view/django.go:320–333  ·  view source on GitHub ↗

ExecuteWriter executes a templates and write its results to the w writer layout here is useless.

(w io.Writer, filename string, _ string, bindingData interface{})

Source from the content-addressed store, hash-verified

318// ExecuteWriter executes a templates and write its results to the w writer
319// layout here is useless.
320func (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}

Callers

nothing calls this directly

Calls 4

LoadMethod · 0.95
fromCacheMethod · 0.95
getPongoContextFunction · 0.85
ExecuteWriterMethod · 0.65

Tested by

no test coverage detected