Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PSGI framework JFF

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 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
Something went wrong with that request. Please try again.