[Catalyst] External plugins
Andreas Marienborg
omega at palle.net
Wed Feb 15 08:00:02 CET 2006
http://cpansearch.perl.org/~mramberg/Catalyst-5.64/lib/Catalyst.pm#%
24c-%3Eplugin(_%24name%2C_%24class%2C_%40args_)
andreas
On 14. feb. 2006, at 22.30, Ovid wrote:
> We have an app which uses Catalyst. However, the plugins can
> theoretically not be Catalyst specific. As far as I can tell, the
> only
> way to use a plugin which doesn't start with "Catalyst::Plugin::"
> is to
> do this:
>
> use base 'Some::Plugin::In::Another::Namespace';
>
> However, this has a potential problem. We now have two ways of doing
> the same thing (using plugins). At some point in the future, if the
> Catalyst::setup_plugins() method changes its behavior, those who "use
> base" to load a different plugin may not be able to take advantage of
> the new behavior. My suggestion is to allow a unary plus on a package
> name to allow "foreign" plugins:
>
> use Catalyst qw(
> DateTime
> +Some::Plugin::In::Another::Namespace
> );
>
> I'd happily make this change, but I'd rather hear from feedback from
> folks before I do this.
>
> Cheers,
> Ovid
>
> --
> If this message is a response to a question on a mailing list,
> please send follow up questions to the list.
>
> Web Programming with Perl -- http://users.easystreet.com/ovid/
> cgi_course/
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
More information about the Catalyst
mailing list