Documentation
¶
Index ¶
- func FuncMap() template.FuncMap
- func GetTemplates() *template.Template
- func LoadTemplates(patterns ...string) error
- func Reload(patterns ...string) error
- func RenderFull(w io.Writer, name string, data any) error
- func RenderPartial(w io.Writer, name string, data any) error
- func SetTemplates(tmpl *template.Template)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplates ¶
GetTemplates returns the current template instance
func LoadTemplates ¶
LoadTemplates loads all templates from the given patterns
func RenderFull ¶
RenderFull renders a full page template
func RenderPartial ¶
RenderPartial renders a template component (for Ajax partial responses)
func SetTemplates ¶
SetTemplates allows users to set a custom template instance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.