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
FuncSprig textTemplate.FuncMap
FuncSprigHtml htmlTemplate.FuncMap
FuncHelm func(*textTemplate.Template) textTemplate.FuncMap
}
var GlobalTemplate *Template
func NewTemplate ¶
func NewTemplate() *Template
Click to show internal directories.
Click to hide internal directories.