diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-03-24 14:08:49 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-03-24 14:08:49 -0500 |
commit | 57bdd1d9edebe82176c01c44555cf29e9d7479a0 (patch) | |
tree | bd06604ba5d09cff9ebf3677e0728d9b78abda17 | |
parent | aba1aabb2489c25080c89c35449db9c34a61bb55 (diff) | |
download | narwhal-57bdd1d9edebe82176c01c44555cf29e9d7479a0.tar.gz narwhal-57bdd1d9edebe82176c01c44555cf29e9d7479a0.zip |
-rw-r--r-- | lib/Narwhal.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Narwhal.pm b/lib/Narwhal.pm index 121cd2c..7766910 100644 --- a/lib/Narwhal.pm +++ b/lib/Narwhal.pm @@ -1,6 +1,8 @@ package Narwhal; use OX; +use MooseX::Types::Path::Class; + with 'OX::Role::WithAppRoot'; has kioku_dsn => ( @@ -16,9 +18,10 @@ has kioku_extra_args => ( ); has template_root => ( - is => 'ro', - isa => 'Str', - block => sub { shift->param('app_root')->subdir('root', 'templates') }, + is => 'ro', + isa => 'Path::Class::Dir', + coerce => 1, + block => sub { shift->param('app_root')->subdir('root', 'templates') }, dependencies => ['app_root'], ); |