Skip to main content

render_widget_via_macro

Function render_widget_via_macro 

Source
pub fn render_widget_via_macro(w: &Widget, tera: &Tera) -> String
Expand description

Render a single widget by calling the existing widgets::render(w) Tera macro — same path the rest of the admin uses. We thread it through a one-shot inline template so we get the exact same HTML.