Versions in this module Expand all Collapse all v0 v0.1.0 Oct 9, 2026 Changes in this version + var ErrAttributeAfterChild = errors.New("html: attribute passed after child node") + var ErrChildInVoidElement = errors.New("html: void elements can't have children") + func EscapeAttributeValue(w io.Writer, value string) error + func EscapeText(w io.Writer, text string) error + func RenderHtmlResponse(w http.ResponseWriter, node Node) error + type Node func(ctx RenderContext) (RenderContext, error) + func Attr(key, value string) Node + func Each[T any](items []T, fn func(T) Node) Node + func El(tag string, nodes ...Node) Node + func Flag(key string, enabled bool) Node + func Fragment(nodes ...Node) Node + func If(condition bool, thenFunc func() Node) Node + func IfElse(condition bool, thenFunc func() Node, elseFunc func() Node) Node + func Text(text string) Node + func UnsafeRawAttr(key, value string) Node + func UnsafeRawText(text string) Node + func VoidEl(tag string, nodes ...Node) Node + func (n Node) RenderHtml(w io.Writer) error + type RenderContext struct + IsOpen bool + Writer io.Writer