[Catalyst] External plugins (continued)
Christopher H. Laco
claco at chrislaco.com
Fri Feb 17 21:21:06 CET 2006
Matt S Trout wrote:
> On Fri, Feb 17, 2006 at 11:54:58AM -0800, Ovid wrote:
>> Hi all,
>>
>> So it sounds like there's a bit of consensus to be able to specify a
>> MyApp::Plugin directory just like we have
>> MyApp::(?:Controller|Model|View) directories. Until (and unless)
>> someone wants to write the code for this, is the unary plus model
>> acceptable?
>>
>> use Catalyst qw(
>> DateTime
>> +MyApp::Custom::Plugin::DoesTheDishes
>> );
>>
>> Since plugin order appears to be important, "use base" isn't a good
>> option and writing a "Catalyst::Plugin" wrapper just means more grunt
>> work. The unary plus saves a lot of time and is fairly clean.
>> However, I won't write this unless others are comfortable with it (and
>> it won't conflict with the MyApp::Plugin scenario. Instead, it merely
>> offers greater flexibility with minimal risk)
>
> I dunno if people want to have a debate over exactly what name to use, but
> I think in general this is a good idea.
>
Right. I like the M/V/C/P[lugin] idea a lot. What scares me about that
is the ability to load plugins in a certain order ala
Module::Pluggable::Ordered and whether that is overkill or not.
qw/ plugin/ seems to be the sanest interim solution imho.
-=Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060217/f2da2aa4/signature.pgp
More information about the Catalyst
mailing list