Documentation ¶ Index ¶ func Apply(h *HTML, m MarkupOrComponentOrHTML) func Render(w io.Writer, c Component) error func RenderHTML(w io.Writer, hs ...*HTML) error type Component type HTML type Markup type MarkupOrComponentOrHTML Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Apply ¶ func Apply(h *HTML, m MarkupOrComponentOrHTML) func Render ¶ func Render(w io.Writer, c Component) error func RenderHTML ¶ func RenderHTML(w io.Writer, hs ...*HTML) error Types ¶ type Component ¶ type Component interface { Render() *HTML } type HTML ¶ type HTML struct { Type html.NodeType // html.ElementNode or html.TextNode. DataAtom atom.Atom // Used when Type is html.ElementNode. Data string // Used when Type is html.TextNode. Attributes map[atom.Atom]string Children []*HTML HTMLNode *html.Node } type Markup ¶ type Markup func(h *HTML) type MarkupOrComponentOrHTML ¶ type MarkupOrComponentOrHTML interface{} Source Files ¶ View all Source files vec.go Click to show internal directories. Click to hide internal directories.