#[macro_use]
extern crate do_with_in;
use do_with_in::*;
use axohtml::html;
use axohtml::dom::DOMTree;
fn main() {
do_with_in!{
sigil: ~
do
~(let list_type = {ul})
~(mk list <~list_type> ~(run ~1) ~list_type>)
~(mk item
~(run ~1) )
let mut thing: DOMTree = html!{
"Example of use site metaprogramming."
~(list
{
~(item {"First item."})
~(item {"Second item."})
~(item {"Third" " item."})
~(item {"Four. "
~(list {
~(item {"Four sub one"})
~(item {"Four sub two"})})})})
};
};
let out = thing.to_string();
println!("{}", out);
}