Documentation ¶
Index ¶
- type Render
- func (r Render) Add(name string, tmpl *template.Template)
- func (r Render) AddFromFiles(name string, files ...string) *template.Template
- func (r Render) AddFromFilesFuncs(name string, funcMap template.FuncMap, files ...string) *template.Template
- func (r Render) AddFromGlob(name, glob string) *template.Template
- func (r *Render) AddFromString(name, templateString string) *template.Template
- func (r *Render) AddFromStringsFuncs(name string, funcMap template.FuncMap, templateStrings ...string) *template.Template
- func (r Render) Instance(name string, data interface{}) render.Render
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Render ¶
Render type
func (Render) AddFromFiles ¶
AddFromFiles supply add template from files
func (Render) AddFromFilesFuncs ¶
func (r Render) AddFromFilesFuncs(name string, funcMap template.FuncMap, files ...string) *template.Template
AddFromFilesFuncs supply add template from file callback func
func (Render) AddFromGlob ¶
AddFromGlob supply add template from global path
func (*Render) AddFromString ¶
AddFromString supply add template from strings
Click to show internal directories.
Click to hide internal directories.