Change generated application skeleton to use Moose
[catagits/Catalyst-Devel.git] / share / lib / MyApp / Controller / Root.pm.tt
index edd875f..f3cc272 100644 (file)
@@ -1,8 +1,8 @@
 package [% rootname %];
+use Moose;
+use namespace::autoclean;
 
-use strict;
-use warnings;
-use parent 'Catalyst::Controller';
+BEGIN { extends 'Catalyst::Controller' }
 
 #
 # Sets the actions in this controller to be registered with no prefix
@@ -58,4 +58,4 @@ it under the same terms as Perl itself.
 
 =cut
 
-1;
+__PACKAGE__->meta->make_immutable;