add space between "BEGIN {" and "extends"
[catagits/Catalyst-Devel.git] / share / lib / Helper / compclass.pm.tt
index 3b0da27..ef8b581 100644 (file)
@@ -1,8 +1,8 @@
 package [% class %];
+use Moose;
+use namespace::autoclean;
 
-use strict;
-use warnings;
-use parent 'Catalyst::[% long_type %]';
+[% IF long_type == 'Controller' %]BEGIN { [% END %]extends 'Catalyst::[% long_type %]';[% IF long_type == 'Controller' %] }[% END %]
 
 =head1 NAME
 
@@ -39,4 +39,6 @@ it under the same terms as Perl itself.
 
 =cut
 
+__PACKAGE__->meta->make_immutable;
+
 1;