Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
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) http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dancer-OO-Dancer AnnoCPAN, Annotated CPAN documentation http://annocpan.org/dist/Dancer-OO-Dancer CPAN Ratings http://cpanratings.perl.org/d/Dancer-OO-Dancer Search CPAN http://search.cpan.org/dist/Dancer-OO-Dancer/ 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. See http://dev.perl.org/licenses/ for more information.