Document setting, make skeleton generate it by default
[catagits/Catalyst-View-TT.git] / lib / Catalyst / Helper / View / TT.pm
index 991c455..9dc6155 100644 (file)
@@ -23,7 +23,7 @@ Helper for TT Views.
 sub mk_compclass {
     my ( $self, $helper ) = @_;
     my $file = $helper->{file};
-    $helper->mk_file( 'compclass', $file );
+    $helper->render_file( 'compclass', $file );
 }
 
 =head1 SEE ALSO
@@ -34,11 +34,12 @@ L<Catalyst::Response>, L<Catalyst::Helper>
 =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
 
@@ -50,28 +51,35 @@ __compclass__
 package [% class %];
 
 use strict;
+use warnings;
+
 use base '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
 
-Clever guy
+[% 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