From 57bdd1d9edebe82176c01c44555cf29e9d7479a0 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 24 Mar 2011 14:08:49 -0500 Subject: this is actually a Dir --- lib/Narwhal.pm | 9 ++++++--- 1 file 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'], ); -- cgit v1.2.3-54-g00ecf