Versions in this module Expand all Collapse all v0 v0.0.19 Jun 20, 2023 v0.0.18 Jun 20, 2023 v0.0.17 Jun 20, 2023 v0.0.16 Jun 20, 2023 v0.0.15 Jun 20, 2023 v0.0.14 Jun 20, 2023 v0.0.13 Jun 20, 2023 v0.0.12 Jun 20, 2023 v0.0.10 Jun 20, 2023 v0.0.9 Jun 20, 2023 v0.0.8 Jun 20, 2023 v0.0.7 Jun 20, 2023 v0.0.6 Jun 20, 2023 v0.0.5 Jun 20, 2023 v0.0.4 Jun 20, 2023 v0.0.3 Jun 20, 2023 v0.0.2 Jun 20, 2023 v0.0.1 Jun 20, 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 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