Documentation ¶
Overview ¶
Package view provides thread-safe caching of HTML templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFuncMaps ¶
SetFuncMaps will combine all template.FuncMaps into one map and then set the them for each template. If a func already exists, it is rewritten without a warning.
func SetModifiers ¶
func SetModifiers(fn ...ModifyFunc)
SetModifiers will set the modifiers for the View that run before rendering.
func SetTemplates ¶
SetTemplates will set the root and child templates.
Types ¶
type Info ¶
type Info struct { BaseURI string Extension string Folder string Caching bool Vars map[string]interface{} // contains filtered or unexported fields }
Info holds view attributes.
type ModifyFunc ¶
type ModifyFunc func(http.ResponseWriter, *http.Request, *Info)
ModifyFunc can modify the view before rendering.
Click to show internal directories.
Click to hide internal directories.