Documentation ¶
Index ¶
- type Item
- func (v *Item) AddVar(key string, value interface{})
- func (v *Item) DelVar(key string)
- func (v *Item) GetVar(key string) interface{}
- func (v *Item) Render(w http.ResponseWriter, r *http.Request) error
- func (v *Item) SetBaseTemplate(s string)
- func (v *Item) SetExtension(s string)
- func (v *Item) SetFolder(s string)
- func (v *Item) SetTemplate(s string)
- func (v *Item) SetVars(vars map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item represents a view template.
func (*Item) SetBaseTemplate ¶
SetBaseTemplate sets the base template to render.
func (*Item) SetExtension ¶
SetExtension sets the extensions of the templates.
func (*Item) SetTemplate ¶
SetTemplate sets the template to render.
Click to show internal directories.
Click to hide internal directories.