Versions in this module Expand all Collapse all v0 v0.123.13 Mar 12, 2024 v0.123.12 Mar 12, 2024 v0.123.11 Mar 12, 2024 v0.123.10 Mar 12, 2024 Changes in this version + var GoFuncs = funcMap + 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 StripTags(html string) string + func URLQueryEscaper(args ...any) string + type Error struct + Description string + ErrorCode ErrorCode + Line int + Name string + Node parse.Node + func (e *Error) Error() string + type ErrorCode int + const ErrAmbigContext + const ErrBadHTML + const ErrBranchEnd + const ErrEndContext + const ErrJSTemplate + const ErrNoSuchTemplate + const ErrOutputContext + const ErrPartialCharset + const ErrPartialEscape + const ErrPredefinedEscaper + const ErrRangeLoopReentry + const ErrSlashAmbig + const OK + type FuncMap = template.FuncMap + type Template struct + Tree *parse.Tree + func Must(t *Template, err error) *Template + func New(name string) *Template + func ParseFS(fs fs.FS, patterns ...string) (*Template, error) + func ParseFiles(filenames ...string) (*Template, error) + func ParseGlob(pattern string) (*Template, error) + func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) + func (t *Template) Clone() (*Template, error) + func (t *Template) DefinedTemplates() string + func (t *Template) Delims(left, right string) *Template + func (t *Template) Execute(wr io.Writer, data any) error + func (t *Template) ExecuteTemplate(wr io.Writer, name string, data any) error + func (t *Template) Funcs(funcMap FuncMap) *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(fs 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) Prepare() (*template.Template, error) + func (t *Template) Templates() []*Template