Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncMap ¶
type FuncMap map[string]interface{}
FuncMap is a wrapper of map[string]interface{}, it use to pass FuncMap to HTML template render.
type ViewManager ¶
View ViewManager manages html templates.
var Manager *ViewManager
func NewManager ¶
func NewManager(pattern string, funcMap FuncMap) *ViewManager
NewManager creates and returns new view manager instance. ViewManager can only be created once.
func (*ViewManager) SetFuncMap ¶
func (m *ViewManager) SetFuncMap(funcMap FuncMap)
SetFuncMap sets FuncMap for HTML render. It pass funcMap to *template.Template.FuncMap().
Click to show internal directories.
Click to hide internal directories.