Documentation ¶
Overview ¶
Package tmpl provides a wrapper around golang's html/template package, and provides additional template manipulation functions.
Index ¶
- func AddDefaultFunc(name string, function interface{})
- func AppendDir(dir string, scripts []string) []string
- func GetScript(filepath string) string
- func SetPartialsLocation(location string)
- func SetTitle(data map[string]interface{}, title string) map[string]interface{}
- func StrEq(a, b interface{}) bool
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultFunc ¶
func AddDefaultFunc(name string, function interface{})
func SetPartialsLocation ¶
func SetPartialsLocation(location string)
Types ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func NewTemplate ¶
Click to show internal directories.
Click to hide internal directories.