Dancer2::Plugin::Syntax::GetPost - Syntactic sugar for GET+POST handlers
version 0.002
use Dancer2::Plugin::Syntax::GetPost; get_post '/myform' => sub { ... };
This module provides very simple syntactic sugar to define a handler for GET and POST requests. Instead of writing this:
any [qw/get post/] => '/form' => sub { ... };
You can write just this:
get_post '/form' => sub { ... };
Dancer2
Please report any bugs or feature requests through the issue tracker at https://github.com/dagolden/dancer2-plugin-syntax-getpost/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/dagolden/dancer2-plugin-syntax-getpost
git clone git://github.com/dagolden/dancer2-plugin-syntax-getpost.git
David Golden <dagolden@cpan.org>
This software is Copyright (c) 2012 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Dancer2::Plugin::Syntax::GetPost, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::Syntax::GetPost
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::Syntax::GetPost
For more information on module installation, please visit the detailed CPAN module installation guide.