Skip to main content

Module render

Module render 

Source
Expand description

Request context, errors and the explicit browser shell. Checked document rendering and per-request metadata. Server rendering is entered only through a finalized bound page handle.

Structs§

RenderCtx
What a render takes beyond PageConfig: the policy’s typed extensions, the walk’s budgets, and the typed homes for what applications used to put in body_prefix: the route’s modulepreload links from the build’s manifest, and head links. Never a nonce: the render draws one per response. Data goes through PageConfig::config_json.

Enums§

RenderError
Why a page was not rendered. Nothing reaches the browser unless the handler sends it: answer with the application’s own error page.

Functions§

render_browser_shell
Serve a route the build declares browser-rendered (ssr: false): the nonced bundle and the same headers as any page, around an empty root.