sprigin

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 24 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap() ttemplate.FuncMap

FuncMap returns a template.FuncMap for use with text/template or html/template. It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARD COMPATIBILITY ONLY

func GenericFuncMap

func GenericFuncMap() map[string]any

GenericFuncMap returns a copy of the basic function map as a map[string]any. It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY

func HermeticHtmlFuncMap

func HermeticHtmlFuncMap() htemplate.FuncMap

HermeticHtmlFuncMap returns an 'html/template'.Funcmap with only repeatable functions. It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY

func HermeticTxtFuncMap

func HermeticTxtFuncMap() ttemplate.FuncMap

HermeticTxtFuncMap returns a 'text/template'.FuncMap with only repeatable functions. It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY

func HtmlFuncMap

func HtmlFuncMap() htemplate.FuncMap

HtmlFuncMap returns an 'html/template'.Funcmap It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY

func TxtFuncMap

func TxtFuncMap() ttemplate.FuncMap

TxtFuncMap returns a 'text/template'.FuncMap It provides backward compatibility with sprig.FuncMap and integrates additional configured functions. FOR BACKWARDS COMPATIBILITY ONLY

Types

type SprigHandler

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

func NewSprigHandler

func NewSprigHandler() *SprigHandler

func (*SprigHandler) AddRegistries

func (sh *SprigHandler) AddRegistries(registries ...sprout.Registry) error

func (*SprigHandler) AddRegistry

func (sh *SprigHandler) AddRegistry(registry sprout.Registry) error

func (*SprigHandler) Build

func (sh *SprigHandler) Build() sprout.FunctionMap

func (*SprigHandler) Logger

func (sh *SprigHandler) Logger() *slog.Logger

func (*SprigHandler) Notices added in v0.6.0

func (sh *SprigHandler) Notices() []sprout.FunctionNotice

func (*SprigHandler) RawAliases added in v0.6.0

func (sh *SprigHandler) RawAliases() sprout.FunctionAliasMap

func (*SprigHandler) RawFunctions added in v0.6.0

func (sh *SprigHandler) RawFunctions() sprout.FunctionMap

Jump to

Keyboard shortcuts

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