Expand description
olav — compile-time XML template engine, maud-inspired.
§Example
use olav::xml;
let name = "world";
let doc = xml! {
root {
greeting { "hello " @name }
}
};
assert_eq!(doc.as_str(), "<root><greeting>hello world</greeting></root>");Re-exports§
pub use markup::Markup;pub use pre_escaped::PreEscaped;pub use render::DisplayValue;pub use render::Render;
Modules§
- escape
- XML escape utilities.
- markup
- pre_
escaped - render
- The
Rendertrait — anything that can be spliced into axml!template.
Macros§
- xml
- The
xml!compile-time XML template macro.