Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(v any, tmp TemplateExecuter) ([]byte, error)
Execute executes the template with the given data.
func SetGlobalTemplate ¶
func SetGlobalTemplate(t *Template)
Types ¶
type Template ¶
type Template struct { TXT *textTemplate.Template HTML *htmlTemplate.Template }
var GlobalTemplate *Template
func NewTemplate ¶
func NewTemplate() *Template
type TemplateExecuter ¶
Click to show internal directories.
Click to hide internal directories.