ExecuteWriter calls the correct view Engine's ExecuteWriter func
(w io.Writer, filename string, layout string, bindingData interface{})
| 59 | |
| 60 | // ExecuteWriter calls the correct view Engine's ExecuteWriter func |
| 61 | func (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. |
nothing calls this directly
no test coverage detected