Roman Galeev > Dancer-Plugin-Scoped > Dancer::Plugin::Scoped

Download:
Dancer-Plugin-Scoped-0.02fix.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Dancer::Plugin::Scoped - Allows to set params variables in scope of route handler

VERSION ^

Version 0.02

SYNOPSIS ^

    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}.

EXPORT ^

scoped

SUBROUTINES/METHODS ^

scoped

A replacement for sub in route handler definition. It sets variables passed in params hash which is accessible via our declarations.

AUTHOR ^

Roman Galeev, <jamhedd at gmail.com>

BUGS ^

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.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Dancer::Plugin::Scoped

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

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.

syntax highlighting: