Versions in this module Expand all Collapse all v0 v0.1.0 Jun 19, 2023 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 Block interface + RenderHTML func() Block + func A(attr attr.Attributes, children ...Block) Block + func Abbr(attr attr.Attributes, children ...Block) Block + func Address(attr attr.Attributes, children ...Block) Block + func Area(attr attr.Attributes, children ...Block) Block + func Article(attr attr.Attributes, children ...Block) Block + func Aside(attr attr.Attributes, children ...Block) Block + func Audio(attr attr.Attributes, children ...Block) Block + func B(attr attr.Attributes, children ...Block) Block + func Base(attr attr.Attributes, children ...Block) Block + func Bdi(attr attr.Attributes, children ...Block) Block + func Bdo(attr attr.Attributes, children ...Block) Block + func Blockquote(attr attr.Attributes, children ...Block) Block + func Body(attr attr.Attributes, children ...Block) Block + func Br(attr attr.Attributes) Block + func Button(attr attr.Attributes, children ...Block) Block + func Canvas(attr attr.Attributes, children ...Block) Block + func Caption(attr attr.Attributes, children ...Block) Block + func Cite(attr attr.Attributes, children ...Block) Block + func Code(attr attr.Attributes, children ...Block) Block + func Col(attr attr.Attributes, children ...Block) Block + func Colgroup(attr attr.Attributes, children ...Block) Block + func Data(attr attr.Attributes, children ...Block) Block + func Datalist(attr attr.Attributes, children ...Block) Block + func Dd(attr attr.Attributes, children ...Block) Block + func Del(attr attr.Attributes, children ...Block) Block + func Details(attr attr.Attributes, children ...Block) Block + func Dfn(attr attr.Attributes, children ...Block) Block + func Dialog(attr attr.Attributes, children ...Block) Block + func Div(attr attr.Attributes, children ...Block) Block + func Dl(attr attr.Attributes, children ...Block) Block + func Doctype(arg string) Block + func Dt(attr attr.Attributes, children ...Block) Block + func Elem(el string, attr attr.Attributes, children ...Block) Block + func Em(attr attr.Attributes, children ...Block) Block + func Embed(attr attr.Attributes, children ...Block) Block + func Fieldset(attr attr.Attributes, children ...Block) Block + func Figcaption(attr attr.Attributes, children ...Block) Block + func Figure(attr attr.Attributes, children ...Block) Block + func Footer(attr attr.Attributes, children ...Block) Block + func Form(attr attr.Attributes, children ...Block) Block + func H1(attr attr.Attributes, children ...Block) Block + func H2(attr attr.Attributes, children ...Block) Block + func H3(attr attr.Attributes, children ...Block) Block + func H4(attr attr.Attributes, children ...Block) Block + func H5(attr attr.Attributes, children ...Block) Block + func H6(attr attr.Attributes, children ...Block) Block + func Head(attr attr.Attributes, children ...Block) Block + func Header(attr attr.Attributes, children ...Block) Block + func Hgroup(attr attr.Attributes, children ...Block) Block + func Hr(attr attr.Attributes) Block + func Html(attr attr.Attributes, children ...Block) Block + func I(attr attr.Attributes, children ...Block) Block + func Iframe(attr attr.Attributes, children ...Block) Block + func Img(attr attr.Attributes) Block + func Input(attr attr.Attributes) Block + func Ins(attr attr.Attributes, children ...Block) Block + func Kbd(attr attr.Attributes, children ...Block) Block + func Label(attr attr.Attributes, children ...Block) Block + func Legend(attr attr.Attributes, children ...Block) Block + func Li(attr attr.Attributes, children ...Block) Block + func Link(attr attr.Attributes) Block + func Main(attr attr.Attributes, children ...Block) Block + func Map(attr attr.Attributes, children ...Block) Block + func Mark(attr attr.Attributes, children ...Block) Block + func Menu(attr attr.Attributes, children ...Block) Block + func Meta(attr attr.Attributes) Block + func Meter(attr attr.Attributes, children ...Block) Block + func Nav(attr attr.Attributes, children ...Block) Block + func Noscript(attr attr.Attributes, children ...Block) Block + func Object(attr attr.Attributes, children ...Block) Block + func Ol(attr attr.Attributes, children ...Block) Block + func Optgroup(attr attr.Attributes, children ...Block) Block + func Option(attr attr.Attributes, children ...Block) Block + func Output(attr attr.Attributes, children ...Block) Block + func P(attr attr.Attributes, children ...Block) Block + func Picture(attr attr.Attributes, children ...Block) Block + func Portal(attr attr.Attributes, children ...Block) Block + func Pre(attr attr.Attributes, children ...Block) Block + func Progress(attr attr.Attributes, children ...Block) Block + func Q(attr attr.Attributes, children ...Block) Block + func Rp(attr attr.Attributes, children ...Block) Block + func Rt(attr attr.Attributes, children ...Block) Block + func Ruby(attr attr.Attributes, children ...Block) Block + func S(attr attr.Attributes, children ...Block) Block + func Samp(attr attr.Attributes, children ...Block) Block + func Script(attr attr.Attributes, children ...Block) Block + func Section(attr attr.Attributes, children ...Block) Block + func Select(attr attr.Attributes, children ...Block) Block + func Slot(attr attr.Attributes, children ...Block) Block + func Small(attr attr.Attributes, children ...Block) Block + func Source(attr attr.Attributes, children ...Block) Block + func Span(attr attr.Attributes, children ...Block) Block + func Strong(attr attr.Attributes, children ...Block) Block + func Style(attr attr.Attributes, children ...Block) Block + func Sub(attr attr.Attributes, children ...Block) Block + func Summary(attr attr.Attributes, children ...Block) Block + func Sup(attr attr.Attributes, children ...Block) Block + func Table(attr attr.Attributes, children ...Block) Block + func Tbody(attr attr.Attributes, children ...Block) Block + func Td(attr attr.Attributes, children ...Block) Block + func Template(attr attr.Attributes, children ...Block) Block + func Textarea(attr attr.Attributes, children ...Block) Block + func Tfoot(attr attr.Attributes, children ...Block) Block + func Th(attr attr.Attributes, children ...Block) Block + func Thead(attr attr.Attributes, children ...Block) Block + func Time(attr attr.Attributes, children ...Block) Block + func Title(attr attr.Attributes, children ...Block) Block + func Tr(attr attr.Attributes, children ...Block) Block + func Track(attr attr.Attributes, children ...Block) Block + func U(attr attr.Attributes, children ...Block) Block + func Ul(attr attr.Attributes, children ...Block) Block + func Var(attr attr.Attributes, children ...Block) Block + func Video(attr attr.Attributes, children ...Block) Block + func Wbr(attr 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 ElementOption + Type string + func (Element) RenderHTML() Block + type ElementOption int8 + const CSSElement + const JSElement + const NoWhitespace + const Void + 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 Text string + func (Text) RenderHTML() Block + type URL template.URL + func (URL) RenderHTML() Block + type UnsafeString string + func (UnsafeString) RenderHTML() Block