Dancer-OO
Simple Dancer OO approach.
The idea is simple -- we need to defer route handler declaration. It could be
done with re-definition Dancer DSL words like get, post, any, etc. It's done
in Dancer::OO::Dancer module.
Deferred declarations are stored in package _handler array variable.
This approach allows to define and use common handlers and to write extendable modules
that could be mounted to later declared uris.
To use this deferred technique package must be inherited from Dancer::OO::Object package,
which sole purpose is to install deferred handlers. It does so by building inheritnance
tree and calling Dancer::* methods with obvious alterations.
Handlers are installed to prefixed routes, thus limiting route syntax to simple strings.
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.
perldoc Dancer::OO::Dancer
You can also look for information at:
RT, CPAN's request tracker (report bugs here)
AnnoCPAN, Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
Copyright (C) 2012 JAMHED
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.