X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=share%2Flib%2FHelper%2Fcompclass.pm.tt;h=ef8b58146f31e7349d0309437c8fcd5f67f8ec86;hb=387bb03750991ff9ac2b7e1a789553b252d911c4;hp=3b0da278da2e0406d8b28da600d0c8a628083e4d;hpb=f8d3d4e0929da31ebbfdbe0238eae9b615a590d4;p=catagits%2FCatalyst-Devel.git diff --git a/share/lib/Helper/compclass.pm.tt b/share/lib/Helper/compclass.pm.tt index 3b0da27..ef8b581 100644 --- a/share/lib/Helper/compclass.pm.tt +++ b/share/lib/Helper/compclass.pm.tt @@ -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;