Versions in this module Expand all Collapse all v1 v1.0.7 Jun 29, 2025 v1.0.6 Jun 22, 2025 v1.0.5 Jun 22, 2025 v1.0.4 Jun 22, 2025 v1.0.3 Jun 19, 2025 v1.0.2 Jun 19, 2025 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 URLQueryEscaper(args ...any) string + type CSS 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 HTML string + type HTMLAttr string + type JS string + type JSStr string + type Srcset string + 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) Templates() []*Template + type URL string