html

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 16 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

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 -

Jump to

Keyboard shortcuts

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