Skip to main content

render_spec_to_html_with_plugins

Function render_spec_to_html_with_plugins 

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

Plugin-aware variant. Walks spec.elements to collect plugin type names, then asks the registry for their CSS/JS asset URLs. Also collects built-in init scripts (e.g. the StreamText EventSource wiring) and merges them into the scripts output even when no plugins are present.