Dancer::Plugin::BeforeRoute - A before hook for a specify route or routes
use Dancer::Plugin::BeforeRoute; before_route get => "/", sub { var before_run => "homepage"; }; before_route ["get", "post"] => "/", sub { var before_run => "homepage"; }; get "/" => sub { ## Return "homepage" return var "before_run"; }; before_route get => "/foo", sub { var before_run => "foo" }; get "/foo" => sub { ## Return "foo" return var "before_run"; }; before_template_route
Dancer provides hook before to do everythings before going any route.
This plugin is to provide a little bit more specifically hook before route or route(s) executed.
Michael Vu, <micvu at cpan.org>
<micvu at cpan.org>
Please report any bugs or feature requests to bug-dancer-plugin-beforeroute at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer::Plugin::BeforeRoute. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-dancer-plugin-beforeroute at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Dancer::Plugin::BeforeRoute
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dancer-Plugin-BeforeRoute
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dancer-Plugin-BeforeRoute
CPAN Ratings
http://cpanratings.perl.org/d/Dancer-Plugin-BeforeRoute
Search CPAN
http://search.cpan.org/dist/Dancer-Plugin-BeforeRoute
GIT Respority
https://bitbucket.org/mvu8912/p5-dancer-plugin-beforeroute
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Dancer::Plugin::BeforeRoute, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::BeforeRoute
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::BeforeRoute
For more information on module installation, please visit the detailed CPAN module installation guide.