Documentation
¶
Overview ¶
Package tmpl provides templating functionality
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct { Items []*Item // contains filtered or unexported fields }
Template represents a new Template with given name and content to be rendered with provided settings with use of built-in and custom functions
func NewTemplate ¶
NewTemplate returns new instance of Template
func (*Template) CustomFunc ¶
CustomFunc adds new custom functions to the template if functions with the same names didn't exist
Click to show internal directories.
Click to hide internal directories.