Versions in this module Expand all Collapse all v0 v0.0.1 Oct 25, 2023 Changes in this version + func HTMLEscape(w io.Writer, b []byte) + func HTMLEscapeString(s string) string + func HTMLEscaper(args ...any) string + func IsTrue(val any) (truth, ok bool) + func JSEscape(w io.Writer, b []byte) + func JSEscapeString(s string) string + func JSEscaper(args ...any) string + func SelectOnMissingNoVal(name string, e error) (reflect.Value, error) + func URLQueryEscaper(args ...any) string + type FuncMap map[string]any + type OptionCompat struct + Behaviour string + func (o *OptionCompat) GetOption(t *Template) + func (o *OptionCompat) SetOption(t *Template) error + type OptionDefaultFunc struct + Enable bool + func (o *OptionDefaultFunc) GetOption(t *Template) + func (o *OptionDefaultFunc) SetOption(t *Template) + type OptionDelimiter struct + End string + Engine string + Start string + func (o *OptionDelimiter) GetOption(t *Template) + func (o *OptionDelimiter) SetOption(t *Template) + type OptionFunction struct + Function any + Name string + Type itemcontrol.FuncType + func (o *OptionFunction) GetOption(t *Template) + func (o *OptionFunction) SetOption(t *Template) + type OptionFunctionMap struct + FunctionMap map[string]any + Type itemcontrol.FuncType + func (o *OptionFunctionMap) GetOption(t *Template) + func (o *OptionFunctionMap) SetOption(t *Template) + type OptionMissingKey struct + OnMissing itemcontrol.SelectOnMissingHdl + func (o *OptionMissingKey) GetOption(t *Template) + func (o *OptionMissingKey) SetOption(t *Template) + type OptionOnError struct + Hdl itemcontrol.OnErrorHdl + func (o *OptionOnError) GetOption(t *Template) + func (o *OptionOnError) SetOption(t *Template) + type OptionSuppressError struct + Suppress bool + func (o *OptionSuppressError) GetOption(t *Template) + func (o *OptionSuppressError) SetOption(t *Template) + type Template struct + func Create() *Template + func Must(t *Template, err error) *Template + func New(name string) *Template + func ParseFS(fsys fs.FS, patterns ...string) (*Template, error) + func ParseFiles(filenames ...string) (*Template, error) + func ParseGlob(pattern string) (*Template, error) + func (t *Template) Clone() (*Template, error) + func (t *Template) Create() *Template + func (t *Template) DefinedTemplates() string + func (t *Template) Delims(left, right string) *Template + func (t *Template) Execute(out io.Writer, data interface{}) (err error) + func (t *Template) ExecuteTemplate(wr io.Writer, name string, data any) error + func (t *Template) Funcs(funcMap FuncMap) *Template + func (t *Template) GetOption(o ...TemplateOption) *Template + func (t *Template) Lookup(name string) *Template + func (t *Template) Name() string + func (t *Template) New(name string) *Template + func (t *Template) Option(opt ...string) *Template + func (t *Template) Parse(text string) (*Template, error) + func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*Template, error) + func (t *Template) ParseFiles(filenames ...string) (*Template, error) + func (t *Template) ParseGlob(pattern string) (*Template, error) + func (t *Template) ParseReader(input io.Reader) (ot *Template, err error) + func (t *Template) SetOption(o ...TemplateOption) *Template + func (t *Template) TemplateNames() []string + func (t *Template) Templates() []*Template + type TemplateOption interface + GetOption func(t *Template) + SetOption func(t *Template)