Skip to main content

render_spec_to_html

Function render_spec_to_html 

Source
pub fn render_spec_to_html(spec: &Spec, data: &Value) -> String
Expand description

Renders an entire Spec to a complete HTML response body. Walks from spec.root outward, escaping text content and substituting data bindings via JSON Pointer. Top-level output is wrapped in a flex-wrap container; the renderer does not emit <html> / <head> / <body> tags — the layout system supplies those. Always returns a String; never panics and never returns Result.