Dancer::Plugin::Scoped - Allows to set params variables in scope of route handler
Version 0.02
use Dancer; use Dancer::Plugin::Scoped; any '/' => scoped { our ($page, $test); template $page, { test => $test }; }; $page, $test - these variables will be set according to params data, e.g. $page is a syntactic alias to params->{page}.
scoped
A replacement for sub in route handler definition. It sets variables passed in params hash which is accessible via our declarations.
Roman Galeev, <jamhedd at gmail.com>
<jamhedd at gmail.com>
Please report any bugs or feature requests to bug-dancer-plugin-scoped at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer-Plugin-Scoped. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-dancer-plugin-scoped at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Dancer::Plugin::Scoped
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dancer-Plugin-Scoped
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dancer-Plugin-Scoped
CPAN Ratings
http://cpanratings.perl.org/d/Dancer-Plugin-Scoped
Search CPAN
http://search.cpan.org/dist/Dancer-Plugin-Scoped/
Copyright 2010 Roman Galeev.
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.
To install Dancer::Plugin::Scoped, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::Scoped
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::Scoped
For more information on module installation, please visit the detailed CPAN module installation guide.