On Feb 24, 2007, at 6:22 PM, Dave Morriss wrote:

On 23/02/07, Jonathan Rockway <[EMAIL PROTECTED]> wrote:
Dave Morriss wrote:
> Question 1: Will I need to build my own plugin to achieve what I want,
> or is there another way?

It's unlikely that you'll want to use a plugin.  Plugins should be
reserved for things that modify Catalyst's usual request cycle.
Pagecache, Static::Simple, and ConfigLoader are good examples of
plugins; Prototype is a bad example.

I thought, based on the way C::P::DateTime is put together, that
plugins are also used as a way of making non-Catalyst modules
available in the Catalyst namespace. From the way I interpret the
documentation you referred to I reckon I _could_ do something like
that. You seem to be recommending against it.

Catalyst::Plugin::DateTime is a very good example of something that has no business being a plugin. It pollutes the namespace with not one, but two useless methods (that do the exact same thing, no less) and gains nothing from being a plugin, it could very easily have been a module (in fact, take a look at the source, it does almost nothing anyway).

--
Jason Kohles
[EMAIL PROTECTED]
http://www.jasonkohles.com/
"A witty saying proves nothing."  -- Voltaire


_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to