Skip to main content

Crate olav

Crate olav 

Source
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 Render trait — anything that can be spliced into a xml! template.

Macros§

xml
The xml! compile-time XML template macro.