template

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template struct {
	sync.Mutex

	FuncMap template.FuncMap
	// contains filtered or unexported fields
}

func New

func New(dir string) *Template

func (*Template) DirLayout added in v0.0.2

func (t *Template) DirLayout(name string) *Template

func (*Template) DirView added in v0.0.2

func (t *Template) DirView(name string) *Template

func (*Template) Load

func (t *Template) Load(name string) error

func (*Template) Refresh added in v0.0.2

func (t *Template) Refresh()

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, body interface{}) error

func (*Template) SetFuncMap added in v0.0.3

func (t *Template) SetFuncMap(fnMap template.FuncMap)

Jump to

Keyboard shortcuts

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