Expand description
Renders a Spec to HTML.
Walks spec.elements by ID starting at spec.root, dispatches per-element
by type_name against [BUILTIN_TYPES] (or the plugin registry for any
type name not in that list), and lets each container recurse via
render_element for its child IDs. The renderer is infallible — every
failure path (missing ID, decode error, depth overflow) emits an HTML
comment and returns an empty string for the offending element rather than
panicking.
Per-component bodies live in:
render/atoms.rs— leaf renderersrender/containers.rs— multi-child layout componentsrender/form.rs—Form,Input,Select,Checkbox,Switch,CheckboxListrender/data.rs—Table,DataTable
Structs§
- Render
Result - Plugin-asset bundle returned by
render_spec_to_html_with_plugins.
Functions§
- render_
spec_ to_ html - Renders an entire
Specto a complete HTML response body. Walks fromspec.rootoutward, escaping text content and substituting data bindings via JSON Pointer. Top-level output is wrapped in aflex-wrapcontainer; the renderer does not emit<html>/<head>/<body>tags — the layout system supplies those. Always returns aString; never panics and never returnsResult. - render_
spec_ to_ html_ with_ plugins - Plugin-aware variant. Walks
spec.elementsto collect plugin type names, then asks the registry for their CSS/JS asset URLs.