diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-09-18 12:19:38 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-09-18 12:19:38 -0500 |
commit | ff93e823b39afa1bb8ffd3cb0fb8d143994c76f6 (patch) | |
tree | dee2a51bd8338fd7b5f7b4009611e8081db17672 /lib | |
parent | 5be97054c5277c52b9aa2141b2013c15e7723af6 (diff) | |
download | tozt.net-ff93e823b39afa1bb8ffd3cb0fb8d143994c76f6.tar.gz tozt.net-ff93e823b39afa1bb8ffd3cb0fb8d143994c76f6.zip |
use mx-getopt for rendering
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Tozt.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Tozt.pm b/lib/Tozt.pm index e8034b8..598c41a 100644 --- a/lib/Tozt.pm +++ b/lib/Tozt.pm @@ -7,6 +7,8 @@ use File::Copy::Recursive qw(rcopy); use Path::Class (); use Template; +with 'MooseX::Getopt'; + has output_dir => ( is => 'ro', isa => Dir, @@ -29,10 +31,12 @@ has static_dir => ( ); has templater => ( - is => 'ro', - isa => 'Template', - lazy => 1, - default => sub { + traits => ['NoGetopt'], + is => 'ro', + isa => 'Template', + lazy => 1, + init_arg => undef, + default => sub { Template->new( INCLUDE_PATH => shift->template_dir, ); |