Amon2-Lite
view release on metacpan or search on metacpan
lib/Amon2/Setup/Flavor/Lite.pm view on Meta::CPAN
$self->{amon2_version} = $Amon2::VERSION;
$self->{amon2_lite_version} = $Amon2::Lite::VERSION;
$self->write_file('app.psgi', <<'...');
use strict;
use warnings;
use utf8;
use File::Spec;
use File::Basename;
use lib File::Spec->catdir(dirname(__FILE__), 'extlib', 'lib', 'perl5');
use lib File::Spec->catdir(dirname(__FILE__), 'lib');
use Amon2::Lite;
our $VERSION = '0.13';
# put your configuration here
sub load_config {
my $c = shift;
my $mode = $c->mode_name || 'development';
t/400_lite/03_kolon.t view on Meta::CPAN
use strict;
use warnings;
use utf8;
use Test::More;
use Plack::Test;
use Test::Requires qw/HTTP::Request::Common/, 'Data::Section::Simple';
use FindBin;
use File::Spec;
use lib File::Spec->catdir($FindBin::Bin, '../../lib');
use Amon2::Lite;
sub config {
+{
'Text::Xslate' => {
syntax => 'Kolon'
}
}
}
t/400_lite/03_kolon_simple.t view on Meta::CPAN
use strict;
use warnings;
use utf8;
use Test::More;
use Plack::Test;
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',
);
get '/' => sub {
t/400_lite/04_template_options.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Plack::Test;
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 },
},
( run in 0.318 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )