Documentation ¶
Index ¶
- func FuncMap(r *http.Request, storage *datastorage.Storage, sess *websession.Session) (template.FuncMap, error)
- type TemplateManager
- func (tm *TemplateManager) FooterMarkdown(ctx context.Context) (string, error)
- func (tm *TemplateManager) PartialTemplate(r *http.Request, mainTemplate string, partialTemplate string) (*template.Template, error)
- func (tm *TemplateManager) PostTemplate(r *http.Request, mainTemplate string) (*template.Template, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) FooterMarkdown ¶
func (tm *TemplateManager) FooterMarkdown(ctx context.Context) (string, error)
FooterMarkdown returns the markdown version of the footer.
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.