Skip to content

luciusmagn/pen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");
}

About

A light_pencil fork, which is a sharp_pencil fork, which is a Pencil fork

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published