Documentation
¶
Overview ¶
Package templatebuffer parses and executes templates since execute can do partial writes on error.
Index ¶
- func ParseExistingTemplateWithResponse(w http.ResponseWriter, r *http.Request, tmpl *template.Template, status int, ...) error
- func ParseTemplate(body string, fm template.FuncMap, data map[string]interface{}) (string, error)
- func ParseTemplateFS(assets fs.FS, templatePath string, fm template.FuncMap, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseExistingTemplateWithResponse ¶
func ParseExistingTemplateWithResponse(w http.ResponseWriter, r *http.Request, tmpl *template.Template, status int, data map[string]interface{}) error
ParseExistingTemplateWithResponse will parse a template and return the string and an error.
func ParseTemplate ¶
ParseTemplate will parse a template and return the string and an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.