Skip to main content

Crate webui_wasm

Crate webui_wasm 

Source
Expand description

WebAssembly bindings for the WebUI framework.

This crate exposes the WebUI rendering pipeline to JavaScript via wasm-bindgen, powering the interactive playground in the documentation site.

Two modes of operation:

  • render โ€” Takes a pre-built protocol (JSON) + state and renders HTML.
  • build_and_render โ€” Takes virtual files + state, parses and renders HTML using the real webui-parser (same parser used by the CLI).

Functionsยง

build_and_render
Build and render a WebUI application from virtual files.
build_protocol
Build the protocol JSON from virtual files without rendering.
protocol_tokens
Extract the CSS token name list from a protocol JSON string.
render
Render a pre-built WebUI protocol with state data.
render_component_templates
render_partial
Produce a complete JSON partial response for client-side navigation.