[catalyst] conditional loading of Controllers and Models
Mark Zealey
mark at itsolve.co.uk
Mon Jul 16 17:33:13 GMT 2007
I use:
package MyApp;
use Catalyst qw/ ... /;
my @extra_plugins;
if( $ENV{CATALYST_DEBUG} ) {
push @extra_plugins => qw/ Static::Simple StackTrace /;
}
# Start the application
__PACKAGE__->setup( @extra_plugins );
Mark
On Monday 16 July 2007 1:48 pm, Daniel McBrearty wrote:
> is there a way to have some C's and M's load into catalyst
> conditionally? for example, if some config variable is set?
>
> cheers
>
> D
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst
mailing list