PSGI framework JFF
Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
t
README.pod

README.pod

Boogie Woogie

Plack/PSGI framework JFF (Just For Fun!).

Three reasons why I wrote it:

Everybody does it

It is easy

It is fun

Features

Heavy use of Plack internals, no wheel reinventing

Reasonable dependencies

OOP approach with no hacking

Cool name

Warning

I don't expect anyone to use it. But it could be another example how to use Plack/PSGI and build your own framework with the only features that you need.

Usage

Create your app:

package MyApp;
use Boose 'BoogieWoogie';

sub startup {
    my $self = shift;

    my $r = $self->dispatcher->router;
    $r->add_route('/', defaults => 'foo#bar');
}

1;

Create a my_app.psgi file:

use Plack::Builder;

use MyApp;

my $app = MyApp->new;

builder {
    enable "Plack::Middleware::Static",
      path => qr{\A/favicon.ico\z},
      root => 'htdocs/';

    enable "SimpleLogger", level => "debug";

    $app;
};

Run it:

plackup my_app.psgi