#Prancer Another PSGI Framework

#Synopsis

Prancer is yet another PSGI framework. This one is designed to be a bit smaller and more out of the way than others but it could probably be described best as project derived from NIH syndrome.

Here's how it might be used:

==> myapp.psgi

use Prancer;
my $app = Prancer->new("/path/to/confdir", "MyApp");
$app->run();

==> MyApp.pm

package MyApp;

use Prancer::Application qw(:all);
use parent qw(Prancer::Application);

sub handle {
    my $self = shift;

    mount('GET', '/', sub {
        context->header(set => 'Content-Type', value => 'text/plain');
        context->body("hello world");
        context->finalize(200);
    });

    return dispatch;
}

==> mytool.pl

use Prancer qw(:all);

Prancer->new("/path/to/confdir");
my $foo = config->get("foo");
config->set("foo", "bar");

Using various plugins, Prancer can also integrate into your application:

#Installation

To install this module, run the following commands:

perl Makefile.PL
make
make test
make install

To install from CPAN you can run this simple command:

perl -MCPAN -e 'install Prancer'

These optional libraries will enhance the functionality of Prancer:

DBI

#Credits

Large portions of this library were taken from the following locations and projects:

#Copyright

Copyright 2014 Paul Lockaby. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.