html-index 0.3.4

Generate an HTML index.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[test]
fn should_work() -> anyhow::Result<()> {
    let res = html_index::Builder::new()
        .raw_body("<body>hello world</body>")
        .script("/bundle.js")
        .style("/bundle.css")
        .build();

    let expected = include_str!("./fixtures/html-css.html");
    assert_eq!(res, expected.replace("\n", ""));
    Ok(())
}