This file documents the revision history for Perl extension Catalyst.
-5.11 Sun Apr 24 17:00:00 2005
+5.20 Sun Apr 24 17:00:00 2005
- improved uploads and parameters
- added $c->req->protocol and $c->req->secure
- improved error message when forwarding to unknown module
use Catalyst::Log;
use Text::ASCIITable;
use Path::Class;
-our $CATALYST_SCRIPT_GEN = 3;
+our $CATALYST_SCRIPT_GEN = 4;
__PACKAGE__->mk_classdata($_) for qw/dispatcher engine log/;
-our $VERSION = '5.11';
+our $VERSION = '5.20';
our @ISA;
=head1 NAME
# Dispatcher
$dispatcher = "Catalyst::Dispatcher::$ENV{CATALYST_DISPATCHER}"
if $ENV{CATALYST_DISPATCHER};
+ my $appdis = $ENV{ uc($caller) . '_DISPATCHER' };
+ $dispatcher = "Catalyst::Dispatcher::$appdis" if $appdis;
$dispatcher->require;
die qq/Couldn't load dispatcher "$dispatcher", "$@"/ if $@;
# Engine
$engine = "Catalyst::Engine::$ENV{CATALYST_ENGINE}"
if $ENV{CATALYST_ENGINE};
+ my $appeng = $ENV{ uc($caller) . '_ENGINE' };
+ $engine = "Catalyst::Engine::$appeng" if $appeng;
$engine->require;
die qq/Couldn't load engine "$engine", "$@"/ if $@;
__cgi__
[% startperl %] -w
-BEGIN { $ENV{CATALYST_ENGINE} = 'CGI' }
+BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' }
use strict;
use FindBin;
__fastcgi__
[% startperl %] -w
-BEGIN { $ENV{CATALYST_ENGINE} = 'FastCGI' }
+BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' }
use strict;
use FindBin;
[% startperl %] -w
BEGIN {
- $ENV{CATALYST_ENGINE} = 'HTTP';
+ $ENV{CATALYST_ENGINE} ||= 'HTTP';
$ENV{CATALYST_SCRIPT_GEN} = [% scriptgen %];
}
__test__
[% startperl %] -w
-BEGIN { $ENV{CATALYST_ENGINE} = 'Test' }
+BEGIN { $ENV{CATALYST_ENGINE} ||= 'Test' }
use strict;
use Getopt::Long;