Pen (A Sharp Pen fork (A Pen fork))

Build Status Crates.io Version Crates.io LICENSE

A microframework for Rust inspired by Flask.

rust extern crate pen; use pen::{Pen, Request, Response, PenResult}; fn hello(_: &mut Request) -> PenResult { Ok(Response::from("Hello World!")) } fn main() { let mut app = Pen::new("/web/hello"); app.get("/", "hello", hello); app.run("127.0.0.1:5000"); }