Skip to main content

Module render

Module render 

Source
Expand description

Server-side mount rendering: produces the <div spark:id="..." spark:snapshot="...">…</div> wrapper that the JS runtime hydrates on page load.

Mirrors forge::stack — per-request mount metadata accumulates in a tokio::task_local! buffer that @sparkScripts drains at the bottom of the page.

Structs§

MountInfo

Functions§

boot_script
Boot script emitted by @sparkScripts. Drains the request’s mounts and embeds them in a JSON literal next to the runtime