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
extern crate nickel;

use nickel::{Nickel, StaticFilesHandler};

fn main() {
    let mut server = Nickel::new();

    // For more complicated uses of `StaticFilesHandler`, you probably want to
    // use `Mount`. See the mount example for usage.

    // go to http://localhost:6767/thoughtram_logo_brain.png to see static file serving in action
    server.utilize(StaticFilesHandler::new("examples/assets/"));

    server.listen("127.0.0.1:6767").unwrap();
}