Amon2-Lite

 view release on metacpan or  search on metacpan

t/400_lite/04_template_options.t  view on Meta::CPAN

use Test::Requires qw/HTTP::Request::Common/, 'Data::Section::Simple';
use FindBin;
use File::Spec;
use lib File::Spec->catdir($FindBin::Bin, '../../lib');

my $app = do {
    use Amon2::Lite;

    __PACKAGE__->template_options(
        syntax => 'Kolon',
        module => ['Data::Dumper'],
        function => {
            pp => sub { 'pp' . shift },
        },
    );

    get '/' => sub {
        my $c = shift;
        $c->render('hoge', { hoge => 'fuga' });
    };
    get '/dumper' => sub {



( run in 0.229 second using v1.01-cache-2.11-cpan-4d50c553e7e )