template

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0, LGPL-3.0 Imports: 5 Imported by: 2

README

template
========
	library to facilitate dealing with html templates.

development
-----------
	$ go mod download
	$ go test -v -cover ./...

license
-------
	LGPL-3.0-or-later

Documentation

Index

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

Jump to

Keyboard shortcuts

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