pub fn render(
protocol_json: &str,
state_json: &str,
entry: &str,
request_path: &str,
plugin: Option<String>,
) -> Result<String, JsValue>Expand description
Render a pre-built WebUI protocol with state data.
§Arguments
protocol_json— JSON string of the serializedWebUIProtocol.state_json— JSON string of the state data.plugin— Optional plugin identifier, such as"fast-v3"for FAST 3.
§Returns
The rendered HTML string, or throws a JS error on failure.