Expand description
Leptos-style XML component model.
Components are plain Rust functions. They receive typed props and optional
Children, then return any value implementing IntoXml or
IntoXmlFragment. Reactivity is intentionally outside the MVP.
Typed props are regular Rust structs owned by the component function.
Re-exports§
pub use crate::builder::fragment;pub use crate::builder::FragmentBuilder as Fragment;pub use crate::builder::IntoXmlFragment;pub use crate::builder::XmlNode as FragmentNode;
Traits§
- IntoXml
- Converts a value into a single XML element builder.
Functions§
- children
- Normalizes any fragment-like value into an explicit
Childrenvalue. - document
- Builds a document from a component that returns one root element.
Type Aliases§
- Children
- Explicit children input for component functions.