Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncMap ¶
func FuncMap(r *http.Request, storage *datastorage.Storage, sess *websession.Session) template.FuncMap
FuncMap returns a map of template functions that can be used in templates.
Types ¶
type TemplateManager ¶
type TemplateManager struct {
// contains filtered or unexported fields
}
TemplateManager -
func NewTemplateManager ¶
func NewTemplateManager(storage *datastorage.Storage, sess *websession.Session) *TemplateManager
NewTemplateManager -
func (*TemplateManager) PartialTemplate ¶
func (tm *TemplateManager) PartialTemplate(r *http.Request, mainTemplate string, partialTemplate string) (*template.Template, error)
PartialTemplate -
func (*TemplateManager) PostTemplate ¶
func (tm *TemplateManager) PostTemplate(r *http.Request, mainTemplate string) (*template.Template, error)
PostTemplate -
Click to show internal directories.
Click to hide internal directories.