Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
54d13555ef | ||
|
|
d6d98cc533 |
@@ -1,6 +1,10 @@
|
|||||||
Revision history for Mojolicious::Plugin::TtRenderer
|
Revision history for Mojolicious::Plugin::TtRenderer
|
||||||
|
|
||||||
{{$NEXT}}
|
{{$NEXT}}
|
||||||
|
- Windows compatability with Cwd::abs_path
|
||||||
|
|
||||||
|
1.25 August 25, 2012
|
||||||
|
- Return 0 on not found, die on error (GH#30)
|
||||||
|
|
||||||
1.24 August 23, 2012
|
1.24 August 23, 2012
|
||||||
- Compatibility with Mojolicious 3.33+
|
- Compatibility with Mojolicious 3.33+
|
||||||
|
|||||||
@@ -40,9 +40,11 @@ sub _init {
|
|||||||
# TODO
|
# TODO
|
||||||
# take and process options :-)
|
# take and process options :-)
|
||||||
|
|
||||||
|
my @renderer_paths = $app ? map { abs_path($_) } grep { -d $_ } @{ $app->renderer->paths } : ();
|
||||||
|
|
||||||
my %config = (
|
my %config = (
|
||||||
( $app
|
( @renderer_paths > 0
|
||||||
? (INCLUDE_PATH => (join ":", map { abs_path($_) } @{$app->renderer->paths}))
|
? (INCLUDE_PATH => join(":", @renderer_paths))
|
||||||
: ()
|
: ()
|
||||||
),
|
),
|
||||||
COMPILE_EXT => '.ttc',
|
COMPILE_EXT => '.ttc',
|
||||||
|
|||||||
Reference in New Issue
Block a user