Initial updates
[catagits/Catalyst-Devel.git] / lib / Catalyst / Helper.pm
index 8561bd6..75a9a37 100644 (file)
@@ -1,6 +1,7 @@
 package Catalyst::Helper;
 
 use strict;
+use warnings;
 use base 'Class::Accessor::Fast';
 use Config;
 use File::Spec;
@@ -545,6 +546,8 @@ package [% name %];
 use strict;
 use warnings;
 
+use Catalyst::Runtime '5.70';
+
 #
 # Set flags and add plugins for the application
 #
@@ -559,7 +562,12 @@ use Catalyst qw/-Debug ConfigLoader Static::Simple/;
 our $VERSION = '0.01';
 
 #
-# Configure the application 
+# Configure the application. 
+#
+# Note that settings in [% name %].yml take precedence over
+# this when using ConfigLoader. Thus configuration details
+# given here can function as a default configuration, with a
+# YAML file acting as an override for local deployment.
 #
 __PACKAGE__->config( name => '[% name %]' );
 
@@ -727,6 +735,7 @@ __cgi__
 BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' }
 
 use strict;
+use warnings;
 use FindBin;
 use lib "$FindBin::Bin/../lib";
 use [% name %];
@@ -765,6 +774,7 @@ __fastcgi__
 BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' }
 
 use strict;
+use warnings;
 use Getopt::Long;
 use Pod::Usage;
 use FindBin;
@@ -845,6 +855,7 @@ BEGIN {
 }  
 
 use strict;
+use warnings;
 use Getopt::Long;
 use Pod::Usage;
 use FindBin;
@@ -951,6 +962,7 @@ __test__
 [% startperl %]
 
 use strict;
+use warnings;
 use Getopt::Long;
 use Pod::Usage;
 use FindBin;
@@ -1006,6 +1018,7 @@ __create__
 [% startperl %]
 
 use strict;
+use warnings;
 use Getopt::Long;
 use Pod::Usage;
 use Catalyst::Helper;