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

Download:
Amon2-3.80.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source   Latest Release: Amon2-6.02

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

syntax highlighting: