Amon2::Web::Dispatcher::Lite - Sinatra like dispatcher for Amon2
package MyApp::Web; use Amon2::Web::Dispatcher::Lite; get '/' => sub { render('index.mt'); }; get '/hello/:name' => sub { my ($c, $args) = @_; render('hello.mt', $args->{name}); }; 1;
It's in alpha quality
We will split this module from Amon2 core distribution. You need to list this class to your cpanfile.
To install Amon2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Amon2
CPAN shell
perl -MCPAN -e shell install Amon2
For more information on module installation, please visit the detailed CPAN module installation guide.