Expand description
Procedural macros backing the workflow-html crate, providing the
tree!, html!, and html_str! function-like macros for building HTML
node trees, plus the #[renderable] attribute macro for deriving HTML
rendering on custom structs.
Macros§
- html
- Parses an HTML node tree and expands to an expression that builds the
element tree and renders it via
render_tree(), yielding the resultingHtmlcollection of nodes. - html_
str - Parses an HTML node tree and expands to an expression that builds the
element tree and immediately renders it to an HTML
Stringviahtml(). - tree
- Parses an HTML node tree and expands to the constructed element object tree without rendering it, allowing the resulting structure to be inspected or rendered later.
Attribute Macros§
- renderable
- Attribute macro that turns a named struct into a renderable HTML element.