Expand description
HTML view helpers and document composition (template-engine neutral).
Structs§
- Asset
Config - Base path for application assets (default
/assets). - Default
Document Template - The framework’s default document template.
- Document
- Application-provided head and body ready for document composition.
- Document
Assets - Build-generated markup delivered with every rendered document.
- Document
Parts - Head and body inputs supplied to a document template.
- Leptos
Executor - A global async executor that can spawn tasks.
- Rendered
Document - A complete HTML document ready for HTTP or static-file delivery.
- Static
Document Writer - Writes complete documents to route-derived
index.htmlfiles. - Trunk
Asset Manifest - Assets produced by Trunk for one frontend build.
- Trunk
Asset Reference - One external asset emitted by Trunk.
- Trunk
Document Asset - Markup generated by one Trunk asset pipeline, as written to Trunk’s HTML.
- Trunk
Preload Reference - One preload generated for a Rust/WASM bundle.
- Trunk
Wasm Bundle - Rust/WASM runtime bundle and initialization information.
- View
Error - Error from view helpers such as
crate::asset.
Constants§
- STATIC_
OUTPUT_ DIR_ ENV - Environment variable set by
serenade-ssgfor 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-universalwith the frontend output directory.
Traits§
- Document
Template - A template engine’s document-level composition boundary.
Functions§
- JsonLd
- Emits JSON-LD after JSON serialization and HTML raw-text-safe escaping.
- Managed
Head - Provides a Leptos metadata context and a lifecycle-managed head insertion point.
- Managed
Link - Registers a reactive link element and replaces an earlier entry with the same key.
- Managed
Meta - Registers a reactive metadata element and replaces an earlier entry with the same key.
- Managed
Title - Uses Leptos’ title stack, escaping server-rendered text before metadata injection.
- asset
- Builds an asset URL under the default
/assetsbase. - 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
bodyand returns its HTML fragment (named nesting for builders). - path
- Builds a path for the named route (Twig
path()analogue).
Type Aliases§
- Document
Slot - A one-shot head or body slot passed to a document template.