Versions in this module Expand all Collapse all v1 v1.0.0 Apr 2, 2020 Changes in this version + func Render(w io.Writer, root Block) error + func RenderMinified(w io.Writer, root Block) error + func RenderMinifiedString(root Block) (string, error) + func RenderString(root Block) (string, error) + type AttrPair struct + Key string + Value interface{} + type Attributes []AttrPair + func Action(action interface{}) Attributes + func Attr(key string, value interface{}) Attributes + func Charset(charset interface{}) Attributes + func Checked() Attributes + func Class(class interface{}) Attributes + func Content(name interface{}) Attributes + func Data(key string, value interface{}) Attributes + func Defer() Attributes + func For(fo interface{}) Attributes + func Href(href interface{}) Attributes + func Id(id interface{}) Attributes + func Method(method interface{}) Attributes + func Name(name interface{}) Attributes + func Rel(rel interface{}) Attributes + func Src(src interface{}) Attributes + func Styles(style string) Attributes + func Type(typ interface{}) Attributes + func Value(value interface{}) Attributes + func (a Attributes) Action(action interface{}) Attributes + func (a Attributes) Attr(key string, id interface{}) Attributes + func (a Attributes) Charset(charset interface{}) Attributes + func (a Attributes) Checked() Attributes + func (a Attributes) Class(class interface{}) Attributes + func (a Attributes) Content(name interface{}) Attributes + func (a Attributes) Data(key string, value interface{}) Attributes + func (a Attributes) Defer() Attributes + func (a Attributes) For(fo interface{}) Attributes + func (a Attributes) Href(href interface{}) Attributes + func (a Attributes) Id(id interface{}) Attributes + func (a Attributes) Method(method interface{}) Attributes + func (a Attributes) Name(name interface{}) Attributes + func (a Attributes) Rel(rel interface{}) Attributes + func (a Attributes) Src(src interface{}) Attributes + func (a Attributes) Styles(style string) Attributes + func (a Attributes) Type(typ interface{}) Attributes + func (a Attributes) Value(value interface{}) Attributes + type Block interface + RenderHTML func() Block + func A(attr Attributes, children ...Block) Block + func Body(attr Attributes, children ...Block) Block + func Br() Block + func Button(attr Attributes, children ...Block) Block + func Div(attr Attributes, children ...Block) Block + func Doctype(arg string) Block + func Elem(el string, attr Attributes, children ...Block) Block + func Form(attr Attributes, children ...Block) Block + func H1(attr Attributes, children ...Block) Block + func H2(attr Attributes, children ...Block) Block + func H3(attr Attributes, children ...Block) Block + func H4(attr Attributes, children ...Block) Block + func H5(attr Attributes, children ...Block) Block + func H6(attr Attributes, children ...Block) Block + func Head(attr Attributes, children ...Block) Block + func Hr(attr Attributes) Block + func Html(attr Attributes, children ...Block) Block + func I(attr Attributes, children ...Block) Block + func Iframe(attr Attributes, children ...Block) Block + func Img(attr Attributes, children ...Block) Block + func Input(attr Attributes, children ...Block) Block + func Label(attr Attributes, children ...Block) Block + func Li(attr Attributes, children ...Block) Block + func Link(attr Attributes, children ...Block) Block + func Main(attr Attributes, children ...Block) Block + func Meta(attr Attributes, children ...Block) Block + func Nav(attr Attributes, children ...Block) Block + func Noscript(attr Attributes, children ...Block) Block + func P(attr Attributes, children ...Block) Block + func Pre(attr Attributes, children ...Block) Block + func Script(attr Attributes, children ...Block) Block + func Span(attr Attributes, children ...Block) Block + func Strong(attr Attributes, children ...Block) Block + func Style(attr Attributes, children ...Block) Block + func Textarea(attr Attributes, children ...Block) Block + func Title(attr Attributes, children ...Block) Block + func Ul(attr Attributes, children ...Block) Block + type Blocks []Block + func (Blocks) RenderHTML() Block + func (b *Blocks) Add(block Block) + func (b *Blocks) AddBlocks(blocks Blocks) + type CSS template.CSS + func (CSS) RenderHTML() Block + type Comment string + func (Comment) RenderHTML() Block + type Element struct + Children Blocks + Options Option + Type string + func (Element) RenderHTML() Block + type HTML template.HTML + func (HTML) RenderHTML() Block + type HTMLAttr template.HTMLAttr + func (HTMLAttr) RenderHTML() Block + type JS template.JS + func (JS) RenderHTML() Block + type JSStr template.JSStr + func (JSStr) RenderHTML() Block + type Option int8 + const CSSElement + const JSElement + const NoWhitespace + const SelfClose + const Void + type Text string + func (Text) RenderHTML() Block + type URL template.URL + func (URL) RenderHTML() Block + type UnsafeString string + func (UnsafeString) RenderHTML() Block