Documentation ¶
Overview ¶
Code generated by cmd/generate. DO NOT EDIT.
Index ¶
- 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
- 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
- type CSS
- type Comment
- type Element
- type ElementOption
- type HTML
- type HTMLAttr
- type JS
- type JSStr
- type Text
- type URL
- type UnsafeString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderMinifiedString ¶
func RenderString ¶
Types ¶
type Block ¶
type Block interface {
RenderHTML() Block
}
func Blockquote ¶
func Blockquote(attr attr.Attributes, children ...Block) Block
func Br ¶
func Br(attr attr.Attributes) Block
func Figcaption ¶
func Figcaption(attr attr.Attributes, children ...Block) Block
func Hr ¶
func Hr(attr attr.Attributes) Block
func Img ¶
func Img(attr attr.Attributes) Block
func Input ¶
func Input(attr attr.Attributes) Block
func Link ¶
func Link(attr attr.Attributes) Block
func Meta ¶
func Meta(attr attr.Attributes) Block
type Element ¶
type Element struct { Type string attr.Attributes Children Blocks Options ElementOption }
func (Element) RenderHTML ¶
type ElementOption ¶
type ElementOption int8
const ( Void ElementOption = 1 << iota CSSElement JSElement NoWhitespace )
type HTMLAttr ¶
func (HTMLAttr) RenderHTML ¶
type UnsafeString ¶
type UnsafeString string
func (UnsafeString) RenderHTML ¶
func (UnsafeString) RenderHTML() Block
Click to show internal directories.
Click to hide internal directories.