Documentation ¶
Index ¶
Constants ¶
View Source
const TemplateToken = "{{"
Variables ¶
View Source
var Functions template.FuncMap
Functions ¶
func NetHost ¶
NetHost returns the host result from net.SplitHostPort. Any error is discarded and an empty string is returned instead
Types ¶
type TemplateCache ¶
func NewFuncMapTemplateCache ¶
func NewFuncMapTemplateCache(m template.FuncMap) *TemplateCache
func NewTemplateCache ¶
func NewTemplateCache(factory func(string) *template.Template) *TemplateCache
func (*TemplateCache) Flush ¶
func (c *TemplateCache) Flush()
func (*TemplateCache) RenderBool ¶
func (c *TemplateCache) RenderBool(i, b string, ctx interface{}) (bool, error)
func (*TemplateCache) RenderString ¶
func (c *TemplateCache) RenderString(i, s string, ctx interface{}) (string, error)
Click to show internal directories.
Click to hide internal directories.