The handlebars crate provides easy templating for any file type. This crate provides a helper for rendering a variable containing markdown into HTML within a temlpate.
```rust extern crate handlebarsmarkdownhelper; use handlebarsmarkdownhelper;
let t0 = Template::compile("{{markdown x}}".to_string()).ok().unwrap();
let mut handlebars = Handlebars::new(); handlebars.registerhelper("markdown", Box::new(handlebarsmarkdownhelper::markdownhelper)); handlebars.register_template("t0", t0);
let mut m :BTreeMap
let r0 = handlebars.render("t0", &m);
asserteq!(r0.ok().unwrap(), "wow
\nsecond wow
\n".tostring());
```