On Fri, Jan 25, 2002 at 07:01:57PM -0500, Lyle Brooks wrote:
> I was wondering why Plugins were not designed to be sub-classes
> of the Template::Context class?

Think of the context as an arena into which everything else is loaded:
stash, templates, filters, plugins, etc.  Plugins have a reference
to the context so that they can access these other resources, but
other than that, they're totally stand-alone chunks of code.

> I just seems like if you're going to get reference to a Template::Context
> object pre-prepended onto your argument list, it would seem more natural
> if it actually were a method call.

I can see where you're coming from, but plugins and contexts really are
different kettles of fish.

A



Reply via email to