Documentation
¶
Overview ¶
Package html provides an HTML string renderer backend for the gui library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMaxDepth = errors.New("html: maximum render depth exceeded")
ErrMaxDepth is returned when the node tree exceeds maxRenderDepth levels.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct{}
Renderer renders a gui.Node tree to HTML strings. It resolves functional and stateful components via gui.Resolve before traversing, so callers do not need to resolve manually.
Renderer implements the gui.Renderer interface; the compile-time check is in html_test.go.
func (*Renderer) Render ¶
Render resolves components in node and writes the resulting HTML to w. It returns the first write error encountered, if any. Returns ErrMaxDepth if the tree exceeds 512 levels of nesting.
Click to show internal directories.
Click to hide internal directories.