Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use rhtml::*;

#[test]
fn test() {
    let mut builder = HtmlBuilder::new();
    builder.body().append(html!("h1", {text: "Hello World!"}));
    assert_eq!(
        "<!DOCTYPE html>\
        <html><head><meta charset=\"UTF-8\"></meta></head>\
        <body><h1>Hello World!</h1></body></html>",
        builder.to_string()
    );
}