[Catalyst] External plugins

Ovid publiustemp-catalyst at yahoo.com
Tue Feb 14 22:58:43 CET 2006


In fact, unless I'm greatly mistaken (which has happened before), it
seems like the entire fix (minus docs and tests) is to change this line
in setup_plugins():

  $plugin = "Catalyst::Plugin::$plugin";

To this:

  unless ( $plugin =~ s/\A\+// ) {
      $plugin = "Catalyst::Plugin::$plugin";
  }

This breaks no tests.

Cheers,
Ovid

--- Ovid <publiustemp-catalyst at yahoo.com> wrote:

> Of courser I sent this to Christopher instead of the list.  Grrrr ...
> 
> Trying once again to master the complexities of email:
> 
> --- "Christopher H. Laco" <claco at chrislaco.com> wrote:
> 
> > Hmmm, why not split the problem into its two parts?
> > 
> > package Catalyst::Plugin::In::Another::Namespace;
> > use base qw/Some::Plugin::In::Another::Namespace/;
> > 
> > sub a place to override things just in case in needed to be {
> > 
> > };
> 
> Because we don't want to create a lib/Catalyst/Plugin directory in
> our
> apps just to have packages with one line of code (and further
> complicating the inheritance tree).  While there are other tricks I
> can
> use to avoid even that extra directory tree, simply fixing
> setup_plugins() is much cleaner.
> 
> 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
> 


-- 
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/



More information about the Catalyst mailing list