Skip to main content

Crate maud_extensions_runtime

Crate maud_extensions_runtime 

Source
Expand description

Runtime slot helpers for maud-extensions.

This crate owns the lower-level string-based slot transport used by .with_children(...), .in_slot(...), slot(), and named_slot().

Prefer #[derive(ComponentBuilder)] from maud-extensions for new shell and layout components when the content regions can be expressed as typed fields. Use this crate when you genuinely need open caller-owned child markup, or when you are keeping an existing slot-based component.

Support policy:

  • MSRV: Rust 1.85
  • Supported Maud version: 0.27

The runtime keeps slot parsing conservative. Malformed transport markers fail closed and the original HTML is preserved as default slot content instead of being partially consumed.

Modules§

prelude
Common imports for runtime slot-based component composition.

Structs§

Slotted
A renderable wrapper that assigns content to a named slot.
SlottedComponent
A renderable wrapper that attaches child markup to a component before rendering it.

Traits§

InSlotExt
Extension trait for assigning children to a named slot.
WithChildrenExt
Extension trait for attaching slot-aware child markup to a renderable component.

Functions§

named_slot
Renders a named slot for the current slotted component context.
slot
Renders the default slot for the current slotted component context.