Documentation ¶
Index ¶
- type Namespace
- func (ns *Namespace) CSS(a interface{}) (template.CSS, error)
- func (ns *Namespace) HTML(a interface{}) (template.HTML, error)
- func (ns *Namespace) HTMLAttr(a interface{}) (template.HTMLAttr, error)
- func (ns *Namespace) JS(a interface{}) (template.JS, error)
- func (ns *Namespace) JSStr(a interface{}) (template.JSStr, error)
- func (ns *Namespace) SanitizeURL(a interface{}) (string, error)
- func (ns *Namespace) URL(a interface{}) (template.URL, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct{}
Namespace provides template functions for the "safe" namespace.
func New ¶
func New() *Namespace
New returns a new instance of the safe-namespaced template functions.
func (*Namespace) SanitizeURL ¶
SanitizeURL returns a given string as html/template URL content.
Click to show internal directories.
Click to hide internal directories.