pub fn render(view_path: &str, state: &Value) -> Result<String>
Render a Spark component template with the given JSON state as context.