README ¶ template ======== library to facilitate dealing with html templates. development ----------- $ go mod download $ go test -v -cover ./... license ------- LGPL-3.0-or-later Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type FuncMap type Pager type Renderer type Template func New(fsys fs.FS, fns FuncMap) (*Template, error) func (t *Template) Render(w http.ResponseWriter, statusCode int, page Pager) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type FuncMap ¶ type FuncMap = template.FuncMap type Pager ¶ type Pager interface { Title() string fmt.Stringer } type Renderer ¶ added in v1.0.1 type Renderer interface { Render(w http.ResponseWriter, statusCode int, page Pager) error } type Template ¶ type Template struct { // contains filtered or unexported fields } func New ¶ func New(fsys fs.FS, fns FuncMap) (*Template, error) func (*Template) Render ¶ func (t *Template) Render(w http.ResponseWriter, statusCode int, page Pager) error Source Files ¶ View all Source files template.go Click to show internal directories. Click to hide internal directories.