Matt S Trout wrote:
> On Mon, Jul 16, 2007 at 02:48:50PM +0200, 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?
> 
> Exclude some of them with setup_components config.
> 
> Or just do it via @INC manipulation - I use this a fair bit for testing.
> 
> Depends what you're trying to achieve really, and you haven't told us :)
> 

Actually, this has me curious as well. In my case, I'd like to load
"Setup" controllers  only when someone passes a --setup arg...so they
can use the web based config once, deliberately. After that, just
loading the app wouldn't expose those controllers to the world accidentally.

-=Chris

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
List: Catalyst@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/

Reply via email to