X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FHelper%2FView%2FTT.pm;h=1c15284de5425f8b8f8367fa0dd7df98e2cac1c4;hb=036d59059583edfcf08e904227215390be87958d;hp=999b527565d007d4f503e3348075f2de8d461a40;hpb=7d8aa5ecb7dbe370ca6782368d5271b41a7323f1;p=catagits%2FCatalyst-View-TT.git diff --git a/lib/Catalyst/Helper/View/TT.pm b/lib/Catalyst/Helper/View/TT.pm index 999b527..1c15284 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.43'; +$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 @@ -34,6 +37,7 @@ L, L =head1 AUTHOR Sebastian Riedel, C +Marcus Ramberg, C =head1 LICENSE @@ -48,21 +52,27 @@ __DATA__ __compclass__ package [% class %]; +use Moose; +use namespace::autoclean; -use strict; -use base 'Catalyst::View::TT'; +extends 'Catalyst::View::TT'; + +__PACKAGE__->config( + TEMPLATE_EXTENSION => '.tt', + render_die => 1, +); =head1 NAME -[% class %] - Catalyst TT View +[% class %] - TT View for [% app %] -=head1 SYNOPSIS +=head1 DESCRIPTION -See L<[% app %]> +TT View for [% app %]. -=head1 DESCRIPTION +=head1 SEE ALSO -Catalyst TT View. +L<[% app %]> =head1 AUTHOR @@ -70,7 +80,7 @@ Catalyst TT View. =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