Documentation ¶
Overview ¶
Package templates wraps the stdlib with helper functions for html/template to assist with common actions, i18n or assets versioning.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶ added in v1.66.0
type Group struct {
// contains filtered or unexported fields
}
func NewFromReader ¶ added in v1.66.0
func NewFromReader(r io.Reader, opts ...PreloadOption) (*Group, error)
func Preload ¶ added in v1.66.0
func Preload(opts ...PreloadOption) (*Group, error)
type PreloadOption ¶ added in v1.66.0
type PreloadOption func(g *Group)
func WithFunc ¶ added in v1.66.0
func WithFunc(name string, fn interface{}) PreloadOption
func WithGlob ¶ added in v1.66.0
func WithGlob(glob string) PreloadOption
func WithRoot ¶ added in v1.66.0
func WithRoot(root string) PreloadOption
type RuntimeVar ¶ added in v1.66.0
type RuntimeVar struct {
Value interface{}
}
Click to show internal directories.
Click to hide internal directories.