Crate workflow_html
source ·Expand description
workflow-html
crate provides HTML templating macros that return
an Html
structure containing a collection of DOM elements as well as retained
Rust structures supplied to the template. This ensures the lifetime of Rust
structures for the period Html
structure is kept alive. Dropping Html
structure destroys all retained DOM elements as well as Rust structures.
By retaining Rust structures this API ensures that elements and callbacks created by Rust-based HTML elements are retained for the duration of the Html litefime.
In addition, HTML elements marked with @name
attributes are collected into
a separate HashMap
allowing client to side-access them for external bindings.
This crate works in conjunction with workflow-ux
allowing Rust HTML Form binding to HTML.
Re-exports§
pub use interface::Hooks;
pub use interface::Html;
pub use escape::escape_attr;
pub use escape::escape_html;
pub use render::Render;
pub use render::Renderables;
pub use utils::document;
pub use utils::ElementResult;
Modules§
Macros§
Structs§
- The
Element
class.
Enums§
Traits§
- A trait for writing or formatting into Unicode-accepting buffers or streams.
Type Aliases§
- The type returned by formatter methods.