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

Method ExecuteWriter

view/view.go:61–66  ·  view source on GitHub ↗

ExecuteWriter calls the correct view Engine's ExecuteWriter func

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

Source from the content-addressed store, hash-verified

59
60// ExecuteWriter calls the correct view Engine's ExecuteWriter func
61func (v *View) ExecuteWriter(w io.Writer, filename string, layout string, bindingData interface{}) error {
62 filename = v.ensureTemplateName(filename)
63 layout = v.ensureTemplateName(layout)
64
65 return v.Engine.ExecuteWriter(w, filename, layout, bindingData)
66}
67
68// AddFunc adds a function to all registered engines.
69// Each template engine that supports functions has its own AddFunc too.

Callers

nothing calls this directly

Calls 2

ensureTemplateNameMethod · 0.95
ExecuteWriterMethod · 0.65

Tested by

no test coverage detected