Skip to main content

Crate workflow_html_macros

Crate workflow_html_macros 

Source
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 resulting Html collection 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 String via html().
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.