Skip to main content

render_surface_html

Function render_surface_html 

Source
pub fn render_surface_html(
    surface: &UiSurface,
    options: &HtmlRenderOptions,
) -> String
Expand description

Render a UiSurface as embeddable HTML.

Deserializes each Value in surface.components into a Component. Values that fail deserialization are rendered as <!-- unknown component -->. Wraps output in a minimal self-contained HTML shell with inline styles only.