use strict;
+our $VERSION = '0.45';
+$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
=head1 AUTHOR
Sebastian Riedel, C<sri@oook.de>
+Marcus Ramberg, C<mramberg@cpan.org>
=head1 LICENSE
-This library is free software . You can redistribute it and/or modify it under
-the same terms as perl itself.
+This library is free software . You can redistribute it and/or modify
+it under the same terms as perl itself.
=cut
__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 %] - TT View Component
+[% class %] - TT View for [% app %]
-=head1 SYNOPSIS
+=head1 DESCRIPTION
- Very simple to use
+TT View for [% app %].
-=head1 DESCRIPTION
+=head1 SEE ALSO
-Very nice component.
+L<[% app %]>
=head1 AUTHOR
=head1 LICENSE
-This library is free software . You can redistribute it and/or modify it
-under the same terms as perl itself.
+This library is free software. You can redistribute it and/or modify
+it under the same terms as Perl itself.
=cut