From ff93e823b39afa1bb8ffd3cb0fb8d143994c76f6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 18 Sep 2010 12:19:38 -0500 Subject: use mx-getopt for rendering --- lib/Tozt.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib') 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, ); -- cgit v1.2.3-54-g00ecf