MATSUNO★Tokuhiro > Amon2-6.02 > Amon2::Web::Dispatcher::Lite

Download:
Amon2-6.02.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

Amon2::Web::Dispatcher::Lite - Sinatra like dispatcher for Amon2

SYNOPSIS ^

    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;

DESCRIPTION ^

It's in alpha quality

We will split this module from Amon2 core distribution. You need to list this class to your cpanfile.

syntax highlighting: