Documentation ¶
Overview ¶
Package hweb provides utilities for the HWeb templating system such as transpilation to Pongo2 templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TemplateSet ¶
type TemplateSet = pongo2.TemplateSet
TemplateSet allows you to create your own group of templates with their own global context (which is shared among all members of the set) and their own configuration. It's useful for a separation of different kind of templates (e. g. web templates vs. mail templates).
func NewSet ¶
func NewSet(name string, loader pongo2.TemplateLoader) *TemplateSet
NewSet can be used to create sets with different kind of templates (e. g. web from mail templates), with different globals or other configurations.
Click to show internal directories.
Click to hide internal directories.