Dancer::Core::App - TODO
version 2.0000_01
Allow for setting a lexical prefix
$app->lexical_prefix('/blog', sub { ... });
All the route defined within the callback will have a prefix appended to the current one.
Register a new route handler.
$app->add_route( method => 'get', regexp => '/somewhere', code => sub { ... } );
Sugar for getting the ordered list of all registered route regexps by method.
my $regexps = $app->routes_regexps_for( 'get' );
Returns an ArrayRef with the results.
Dancer Core Developers
This software is copyright (c) 2012 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dancer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer
CPAN shell
perl -MCPAN -e shell install Dancer
For more information on module installation, please visit the detailed CPAN module installation guide.