tpl

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap() template.FuncMap

FuncMap function map

func Load

func Load(opts *Options) (*template.Template, error)

Load new template

Types

type Options

type Options struct {
	BaseDir       string
	BasePath      string
	DynamicReload bool
	FuncMap       template.FuncMap
	Fsys          fs.FS
}

Options for the template

Jump to

Keyboard shortcuts

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