5.23 2005-06-03 02:30:00
- added support for non Catalyst::Base components to live in namespace
- improved concurrency connections in Catalyst::Engine::HTTP::Daemon
+ - win32 compatibility for scripts (Andy Grundman)
+ IMPORTANT: You have to regenerate the script directory!
5.22 2005-05-26 14:24:00
- Improved base locating in MP engines
all_pod_coverage_ok();
__cgi__
[% startperl %] -w
-BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' }
use strict;
use FindBin;
-use lib "$FindBin::Bin/../lib";
+use Path::Class;
+
+BEGIN {
+ $ENV{CATALYST_ENGINE} ||= 'CGI';
+ use lib dir($FindBin::Bin)->parent->subdir('lib')->stringify;
+}
+
use [% name %];
[% name %]->run;
__fastcgi__
[% startperl %] -w
-BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' }
-
use strict;
use FindBin;
-use lib "$FindBin::Bin/../lib";
+use Path::Class;
+
+BEGIN {
+ $ENV{CATALYST_ENGINE} ||= 'FastCGI';
+ use lib dir($FindBin::Bin)->parent->subdir('lib')->stringify;
+}
+
use [% name %];
[% name %]->run;
__server__
[% startperl %] -w
-BEGIN {
- $ENV{CATALYST_ENGINE} ||= 'HTTP';
- $ENV{CATALYST_SCRIPT_GEN} = [% scriptgen %];
-}
-
use strict;
use Getopt::Long;
use Pod::Usage;
use FindBin;
-use lib "$FindBin::Bin/../lib";
+use Path::Class;
+
+BEGIN {
+ $ENV{CATALYST_ENGINE} ||= 'HTTP';
+ $ENV{CATALYST_SCRIPT_GEN} = [% scriptgen %];
+ use lib dir($FindBin::Bin)->parent->subdir('lib')->stringify;
+}
+
use [% name %];
my $help = 0;
__test__
[% startperl %] -w
-BEGIN { $ENV{CATALYST_ENGINE} ||= 'Test' }
-
use strict;
use Getopt::Long;
use Pod::Usage;
use FindBin;
-use lib "$FindBin::Bin/../lib";
+use Path::Class;
+
+BEGIN {
+ $ENV{CATALYST_ENGINE} ||= 'Test';
+ use lib dir($FindBin::Bin)->parent->subdir('lib')->stringify;
+}
+
use [% name %];
my $help = 0;