go-html/render.go
Claude 19cad82945
feat: add render pipeline and validation tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 23:43:05 +00:00

9 lines
198 B
Go

package html
// Render is a convenience function that renders a node tree to HTML.
func Render(node Node, ctx *Context) string {
if ctx == nil {
ctx = NewContext()
}
return node.Render(ctx)
}