Skip to main content

render_view

Function render_view 

Source
pub fn render_view(
    registry: &Arc<ComponentRegistry>,
    view: &ComponentView,
    data: Map<String, Value>,
) -> Result<String, LivewireError>
Expand description

Renders a component’s view, whether it names a template or carries its own source.

§Errors

Fails when the view cannot be found or rendered.