nickel 0.11.0

An express.js inspired web framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use util::{run_example, read_url};

fn t(file: &str) {
    run_example(file, |port| {
        let paths = ["", "foo", "bar.html", "foo-barrrr/baz"];

        for path in &paths {
            let url = format!("http://localhost:{}/{}", port, path);
            let s = read_url(&url);

            assert_eq!(s, "Hello World");
        }
    })
}

#[test] fn non_macro() { t("hello_world") }
#[test] fn _macro() { t("hello_world_macro") }