template

package
v0.0.0-...-8ffb5d3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader loads HTML templates from files on disk.

func NewLoader

func NewLoader(dir string, funcs map[string]interface{}) (*Loader, error)

NewLoader creates a template loader. The loader loads files from directory dir using template functions funcs.

func (*Loader) Load

func (l *Loader) Load(path string) (*htemplate.Template, error)

Load loads the template from path where path is relative to the loader's directory.

Jump to

Keyboard shortcuts

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