X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FHelper%2FView%2FTT.pm;h=ecaa472edfc47e2ea5b5fb956c08eff527fd6528;hb=d318f193ec999438a07248436ba1866868fd089f;hp=d5ee3d07467c1fc021d5d131cfda34aedf888f13;hpb=6229ce0d5361b3331b7e0f1fbdeb5d4868b5eb66;p=catagits%2FCatalyst-View-TT.git diff --git a/lib/Catalyst/Helper/View/TT.pm b/lib/Catalyst/Helper/View/TT.pm index d5ee3d0..ecaa472 100644 --- a/lib/Catalyst/Helper/View/TT.pm +++ b/lib/Catalyst/Helper/View/TT.pm @@ -2,13 +2,16 @@ package Catalyst::Helper::View::TT; use strict; +our $VERSION = '0.44'; +$VERSION = eval $VERSION; + =head1 NAME Catalyst::Helper::View::TT - Helper for TT Views =head1 SYNOPSIS - script/create.pl view TT TT + script/create.pl view HTML TT =head1 DESCRIPTION @@ -49,13 +52,15 @@ __DATA__ __compclass__ package [% class %]; +use Moose; +use namespace::autoclean; -use strict; -use warnings; - -use base 'Catalyst::View::TT'; +extends 'Catalyst::View::TT'; -__PACKAGE__->config(TEMPLATE_EXTENSION => '.tt'); +__PACKAGE__->config( + TEMPLATE_EXTENSION => '.tt', + render_die => 1, +); =head1 NAME @@ -63,7 +68,7 @@ __PACKAGE__->config(TEMPLATE_EXTENSION => '.tt'); =head1 DESCRIPTION -TT View for [% app %]. +TT View for [% app %]. =head1 SEE ALSO @@ -75,7 +80,7 @@ L<[% app %]> =head1 LICENSE -This library is free software, you can redistribute it and/or modify +This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. =cut