html

package
v0.0.0-...-91c01a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 17 Imported by: 0

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, error)

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) 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 -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL