Skip to main content

render_stream_editor

Function render_stream_editor 

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

Top-level entry: render the entire editor HTML for one WidgetKind::Stream widget.

widget.value is the JSON-string the handler loaded; allowed types live in widget.allowed. Returns the editor body — the caller stamps it onto widget.custom_html so _widget.html’s stream arm can emit it via {{ w.custom_html | safe }}.