chilli

Crates.iochilli
lib.rschilli
version0.4.4
sourcesrc
created_at2018-05-16 16:02:42.02277
updated_at2018-05-17 07:50:13.612762
descriptionA micro web framework for Rust. (A Pencil fork)
homepagehttps://github.com/armersong/chilli
repositoryhttps://github.com/armersong/chilli
max_upload_size
id65741
size675,381
armer song (armersong)

documentation

http://armersong.github.io/chilli/

README

#chilli (A Sharp Pencil fork)

Build Status Crates.io Version

A microframework for Rust inspired by Flask.

extern crate chilli;

use chilli::{Pencil, Request, Response, PencilResult};

fn hello(_: &mut Request) -> PencilResult {
    Ok(Response::from("Hello World!"))
}

fn main() {
    let mut app = Pencil::new("/web/hello");
    app.get("/", "hello", hello);
    app.run("127.0.0.1:5000");
}

One simple guide: https://github.com/golddranks/sharp_pencil https://fengsp.github.io/blog/2016/3/introducing-pencil/

If you feel anything wrong, feedbacks or pull requests are welcome.

Commit count: 242

cargo fmt