minimal sinatra for perl6
Perl6
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
eg double.psgi Oct 19, 2015
lib better stacktrace Oct 19, 2015
t support P6SGI_CONTAINER Oct 19, 2015
.gitignore mi6 build Feb 4, 2016
.travis.yml mi6 build Feb 4, 2016
LICENSE init Oct 18, 2015
META6.json Use SPDX identifier in license field of META6.json Apr 26, 2017
README.md mi6 build Feb 4, 2016

README.md

Build Status

NAME

Frinfon - minimal sinatra

SYNOPSIS

# app.psgi
use Frinfon;

get '/' => sub ($c) {
    $c.render-text("hello world\n");
};

get '/:user' => sub ($c) {
    my $user = $c.captured<user>;
    $c.render-json: { message => "hello $user!" };
};

app;

# terminal
> crustup app.psgi

DESCRIPTION

Frinfon is a minimal sinatra, a well-known ruby web application framework. You may write a simple web application with Frinfon quickly.

More useful sinatra (or Kossy?) coming soon!

PROBLEMS

I thought perl6 did not have perl5's import method. It's wrong! perl6 has EXPORT subroutine!

AUTHOR

Shoichi Kaji skaji@cpan.org

COPYRIGHT AND LICENSE

Copyright 2015 Shoichi Kaji

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.