Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Viewer ¶
type Viewer struct { TemplateMap template.FuncMap Templates *template.Template TemplateBox *rice.Box Statics *rice.HTTPBox }
Viewer structures the set of app page views
func InitializeViewer ¶
func InitializeViewer() *Viewer
InitializeViewer initializes the set of page views
func (*Viewer) InitializeTemplates ¶
func (p *Viewer) InitializeTemplates()
InitializeTemplates to use in page views
func (*Viewer) RenderTemplate ¶
func (p *Viewer) RenderTemplate(w http.ResponseWriter, tmpl string, pInt interface{})
RenderTemplate - Render a template given a model
Click to show internal directories.
Click to hide internal directories.