#![recursion_limit = "256"] extern crate stdweb; extern crate typed_html; use stdweb::web::{self, INode}; use typed_html::dom::Node; use typed_html::html; use typed_html::output::stdweb::Stdweb; fn main() { let mut doc = html!(

"Hello Kitty"

"She is not a ""cat" ". She is a ""human girl""."

: Stdweb); let vdom = doc.vnode(); let document = web::document(); let body = document.body().expect("no body element in doc"); let tree = Stdweb::build(&document, vdom).unwrap(); body.append_child(&tree); }