Documentation
¶
Index ¶
- type Extension
- type Template
- func (tpl *Template) EvalToBool(tplString string) (bool, error)
- func (tpl *Template) Exec(tplString string) string
- func (tpl *Template) WithData(data util.Data) *Template
- func (tpl *Template) WithExtensions(extensions map[string]Extension) *Template
- func (tpl *Template) WithGit(gitObject git.Repo) *Template
- func (tpl *Template) WithStrict(strictMode bool) *Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template defines structure for template engine
func (*Template) EvalToBool ¶
EvalToBool evaluates expression and converts it to boolean
func (*Template) WithExtensions ¶
WithExtensions sets extensions
func (*Template) WithStrict ¶
Strict sets strict mode
Click to show internal directories.
Click to hide internal directories.