Documentation ¶
Index ¶
- type Model
- type Template
- func (t *Template) AddFunc(name string, fn interface{})
- func (t *Template) Execute(wr io.Writer, data Model) error
- func (t *Template) ExecuteTemplate(wr io.Writer, name string, data Model) error
- func (t *Template) ExecuteText(wr io.Writer, data Model) error
- func (t *Template) ExecuteTextTemplate(wr io.Writer, name string, data Model) error
- func (t *Template) Load(paths []string) error
- func (t *Template) Reload(paths []string) error
- func (t *Template) SetSharedVariable(name string, value interface{})
- func (t *Template) Watch()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model map[string]interface{}
func (Model) AddAllAttributes ¶
func (Model) AddAttribute ¶
func (Model) ContainsAttribute ¶
func (Model) GetAttribute ¶
func (Model) MergeAttributes ¶
MergeAttributes Copy all attributes in the supplied {@code Map} into this {@code Map}, with existing objects of the same name taking precedence (i.e. not getting replaced).
type Template ¶
type Template struct { HtmlTemplate *htmlTemplate.Template TextTemplate *template.Template // contains filtered or unexported fields }
func (*Template) ExecuteTemplate ¶
func (*Template) ExecuteTextTemplate ¶
func (*Template) SetSharedVariable ¶
Click to show internal directories.
Click to hide internal directories.