pen

Crates.iopen
lib.rspen
version0.1.0
sourcesrc
created_at2017-10-25 15:34:34.488733
updated_at2017-10-25 15:34:34.488733
descriptionA micro web framework for Rust. (A different fork of a very light fork of a Pencil fork)
homepagehttps://github.com/luciusmagnn/pen
repositoryhttps://github.com/luciusmagn/pen
max_upload_size
id36869
size67,326
Lukáš Hozda [magnusi] (luciusmagn)

documentation

README

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

Build Status Crates.io Version Crates.io LICENSE

A microframework for Rust inspired by Flask.

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");
}
Commit count: 241

cargo fmt