Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
380cea8aa2 | ||
|
|
9217818ad2 | ||
|
|
02fce2bfdd |
@@ -2,6 +2,9 @@ Revision history for Mojolicious::Plugin::TtRenderer
|
|||||||
|
|
||||||
{{$NEXT}}
|
{{$NEXT}}
|
||||||
|
|
||||||
|
1.40 February 20, 2013
|
||||||
|
- Added diagnostic for IO loop implementation in testing
|
||||||
|
|
||||||
1.39 January 28, 2013
|
1.39 January 28, 2013
|
||||||
- Documentation updates.
|
- Documentation updates.
|
||||||
|
|
||||||
|
|||||||
@@ -42,18 +42,16 @@ sub _init {
|
|||||||
# take and process options :-)
|
# take and process options :-)
|
||||||
|
|
||||||
my @renderer_paths = $app ? map { abs_path($_) } grep { -d $_ } @{ $app->renderer->paths } : ();
|
my @renderer_paths = $app ? map { abs_path($_) } grep { -d $_ } @{ $app->renderer->paths } : ();
|
||||||
|
push @renderer_paths, 'templates';
|
||||||
|
|
||||||
my %config = (
|
my %config = (
|
||||||
( @renderer_paths > 0
|
INCLUDE_PATH => \@renderer_paths,
|
||||||
? (INCLUDE_PATH => [@renderer_paths, 'templates'])
|
COMPILE_EXT => '.ttc',
|
||||||
: (INCLUDE_PATH => ['templates'])
|
COMPILE_DIR => ($dir || abs_path(File::Spec->tmpdir)),
|
||||||
),
|
UNICODE => 1,
|
||||||
COMPILE_EXT => '.ttc',
|
ENCODING => 'utf-8',
|
||||||
COMPILE_DIR => ($dir || abs_path(File::Spec->tmpdir)),
|
CACHE_SIZE => 128,
|
||||||
UNICODE => 1,
|
RELATIVE => 1,
|
||||||
ENCODING => 'utf-8',
|
|
||||||
CACHE_SIZE => 128,
|
|
||||||
RELATIVE => 1,
|
|
||||||
%{$args{template_options} || {}},
|
%{$args{template_options} || {}},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
use Test::More tests => 1;
|
||||||
|
use Mojo::IOLoop;
|
||||||
|
|
||||||
|
my $loop = eval { Mojo::IOLoop->singleton };
|
||||||
|
diag $@ if $@;
|
||||||
|
ok $loop;
|
||||||
|
diag ref eval { $loop->reactor };
|
||||||
|
diag $@ if $@;
|
||||||
|
|
||||||
Reference in New Issue
Block a user