J. Shirley writes:
> I would prefer something like:
> MyApp->config(
>     'PluginName' => { debug = 0 }
> );
>
> Thoughts?

Nice.  But maybe do "Plugin::PluginName" to avoid namespace collisions.

I wonder how we can best make this approach "standard" though...

If I were nothingmuch, I would do caller magic to determine which module
is calling $c->debug, and then return true or false accordingly.  Maybe
I will try this out as a plugin, actually :)  Evil, but it will hack
around broken plugins and Just Work :)

Regards,
Jonathan Rockway

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to