Skip to main content

Module view

Module view 

Source
Expand description

HTML view helpers and document composition (template-engine neutral).

Structs§

AssetConfig
Base path for application assets (default /assets).
DefaultDocumentTemplate
The framework’s default document template.
Document
Application-provided head and body ready for document composition.
DocumentAssets
Build-generated markup delivered with every rendered document.
DocumentParts
Head and body inputs supplied to a document template.
LeptosExecutor
A global async executor that can spawn tasks.
RenderedDocument
A complete HTML document ready for HTTP or static-file delivery.
StaticDocumentWriter
Writes complete documents to route-derived index.html files.
TrunkAssetManifest
Assets produced by Trunk for one frontend build.
TrunkAssetReference
One external asset emitted by Trunk.
TrunkDocumentAsset
Markup generated by one Trunk asset pipeline, as written to Trunk’s HTML.
TrunkPreloadReference
One preload generated for a Rust/WASM bundle.
TrunkWasmBundle
Rust/WASM runtime bundle and initialization information.
ViewError
Error from view helpers such as crate::asset.

Constants§

STATIC_OUTPUT_DIR_ENV
Environment variable set by serenade-ssg for the static output directory.
TRUNK_ASSET_MANIFEST_ENV
Environment variable set by Serenade mode commands with the manifest path.
TRUNK_ASSET_MANIFEST_FILE
Filename emitted by Trunk for its build asset manifest.
TRUNK_DIST_DIRECTORY_ENV
Environment variable set by serenade-universal with the frontend output directory.

Traits§

DocumentTemplate
A template engine’s document-level composition boundary.

Functions§

JsonLd
Emits JSON-LD after JSON serialization and HTML raw-text-safe escaping.
ManagedHead
Provides a Leptos metadata context and a lifecycle-managed head insertion point.
ManagedLink
Registers a reactive link element and replaces an earlier entry with the same key.
ManagedMeta
Registers a reactive metadata element and replaces an earlier entry with the same key.
ManagedTitle
Uses Leptos’ title stack, escaping server-rendered text before metadata injection.
asset
Builds an asset URL under the default /assets base.
escape_attr
Escapes a value for use inside a double-quoted HTML attribute.
escape_html
Escapes text for HTML body content (&, <, >, ", ').
initialize_leptos_ssr
Initializes Leptos SSR with the futures executor.
partial
Runs body and returns its HTML fragment (named nesting for builders).
path
Builds a path for the named route (Twig path() analogue).

Type Aliases§

DocumentSlot
A one-shot head or body slot passed to a document template.