[Catalyst] Re: A different approach to static content
Christopher H. Laco
claco at chrislaco.com
Tue Aug 16 23:44:53 CEST 2005
Christopher H. Laco wrote:
> Really be:
>
> if ( $engine ) {
> $engine = 'Catalyst::Engine::' . $engine;
> }
>
> if ( ! $engine && $ENV{CATALYST_ENGINE} ) {
> $engine = 'Catalyst::Engine::' . $ENV{CATALYST_ENGINE};
> }
>
> if ( ! $engine && $ENV{ uc($class) . '_ENGINE' } ) {
> $engine = 'Catalyst::Engine::' . $ENV{ uc($class) . '_ENGINE' };
> }
>
> if ( ! $engine && $ENV{MOD_PERL} ) {
>
> Otherwise, whatever engine I set via setup_engine(@_) get's trashed by
> and ENV that may be setup.
>
> -=Chris
Or, I could disab le the idiot bit, and just add MyApp::sub setup_engine
and ISA my own engine and call ->engine($myengine).
Duh.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20050816/31f62b4d/smime.bin
More information about the Catalyst
mailing list