use html_types::attributes::Value;
use html_types::node::Element;
use html_types::node::Node;
use html_types::tag::Tag;
use html_types::text::Text;
fn main() {
let link = {
let label = Text::create("Click Me");
let url = Value::create("http://google.com").unwrap();
Element::anchor(url, label)
};
let body = Element::body(vec![link]);
let header = {
let mut el = Element::<Vec<Node>>::create(Tag::HEADER);
let text = Text::create("Hello world");
let title = Element::title(text);
el.push(title);
el
};
let html = Element::html(Value::EN, header, body);
let node: Node = html.into();
let string: String = node.into();
println!("{}", string);
}