Documentation ¶
Overview ¶
Package vec provides a vecty-like API for backend HTML rendering.
Index ¶
Constants ¶
View Source
const HTMLNode html.NodeType = 100
HTMLNode represents a node type whose Data is raw HTML.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(h *HTML, m MarkupOrComponentOrHTML)
Types ¶
type HTML ¶
type HTML struct { Type html.NodeType // One of html.ElementNode, html.TextNode, HTMLNode. DataAtom atom.Atom // Used when Type is html.ElementNode. Data string // Used when Type is html.TextNode or HTMLNode. Attributes map[atom.Atom]string Children []*HTML Children2 []*html.Node // TODO: Generalize to/merge with all children. Currently, this is optional nodes after children. }
func UnsafeHTML ¶
type MarkupOrComponentOrHTML ¶
type MarkupOrComponentOrHTML interface{}
Click to show internal directories.
Click to hide internal directories.