Documentation
¶
Index ¶
- func AddFunc(name string, i interface{})
- func DelFunc(name string)
- func HTMLEscape(w io.Writer, b []byte)
- func HTMLEscapeString(s string) string
- func HTMLEscaper(args ...interface{}) string
- func JSEscape(w io.Writer, b []byte)
- func JSEscapeString(s string) string
- func JSEscaper(args ...interface{}) string
- func URLQueryEscaper(args ...interface{}) string
- type FuncMap
- type Template
- func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error)
- func (t *Template) Clone() (*Template, error)
- func (t *Template) Delims(left, right string) *Template
- func (t *Template) Execute(wr io.Writer, data interface{}) (err error)
- func (t *Template) ExecuteTemplate(wr io.Writer, name string, data interface{}) error
- func (t *Template) Funcs(funcMap FuncMap) *Template
- func (n Template) Insert(name string, t *Template)
- func (n Template) Length() int
- func (t *Template) Lookup(name string) (tmpl *Template, err error)
- func (t *Template) Name() string
- func (t *Template) New(name string) *Template
- func (t *Template) Parse(src string) (*Template, error)
- func (t *Template) ParseFiles(filenames ...string) (*Template, error)
- func (t *Template) ParseGlob(pattern string) (*Template, error)
- func (n Template) Remove(name string)
- func (t *Template) Templates() []*Template
- func (n Template) Upsert(name string, t *Template)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTMLEscape ¶
func HTMLEscapeString ¶
func HTMLEscaper ¶
func HTMLEscaper(args ...interface{}) string
func JSEscapeString ¶
func URLQueryEscaper ¶
func URLQueryEscaper(args ...interface{}) string
Types ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func ParseFiles ¶
func (*Template) AddParseTree ¶
func (*Template) ExecuteTemplate ¶
Click to show internal directories.
Click to hide internal directories.