hotmeal 2.0.3

HTML toolkit with arena-based DOM, html5ever parsing, and serialization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    use hotmeal::StrTendril;

    let old = StrTendril::from("<html><body><p> </p></body></html>");
    let new = StrTendril::from("<html><body><p> </p><p class=\"a\"> </p></body></html>");

    let patches = hotmeal::diff_html(&old, &new);
    println!("Patches ({:?}):", patches.as_ref().map(|p| p.len()));
    if let Ok(patches) = patches {
        for patch in &patches {
            println!("  {:?}", patch);
        }
    }
}