Documentation ¶
Index ¶
- func EscapeAttribute(s string) string
- func EscapeCharData(s string) string
- func EscapeString(s string) string
- func NormalizeURL(s string) string
- func RenderHTML(r Renderer) template.HTML
- type Attr
- type Attrs
- type Children
- type Class
- type Div
- type Error
- type Form
- type Method
- type Name
- type RenderFunc
- type Renderer
- type RendererExtended
- type Span
- type Template
- type Text
- type URL
- type UnsafeWriter
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeAttribute ¶
func EscapeCharData ¶
func EscapeString ¶
func NormalizeURL ¶
NormalizeURL normalizes url to be safely included as an href based on golang.org/pkg/html/template
func RenderHTML ¶
Types ¶
type RenderFunc ¶
type RenderFunc func(w Writer)
func (RenderFunc) Render ¶
func (fn RenderFunc) Render(w Writer)
type RendererExtended ¶
type Template ¶
type Template struct { Content string // contains filtered or unexported fields }
func MustTemplate ¶
func NewTemplate ¶
func (*Template) RenderData ¶
type UnsafeWriter ¶
Click to show internal directories.
Click to hide internal directories.