Perrin Harkins wrote:

On Mon, 2003-07-28 at 19:15, Christopher L. Everett wrote:

Heh, I was trying to do templates that would use custom plugins.  Then
I could vary the PLUGIN_BASE to get same named plugins obtaining their
data in slightly different ways.

That sounds obscure and hard to debug. I still suggest you ditch
Apache::Template and do this the easy way, with a custom handler. Apache::Template basically exists just to make configuration easy for
people who want a very vanilla setup, so if it doesn't make it easy for
you then you shouldn't use it.

That just happens to be my perferred mode of doing thngs.  The problem with
custom one off handlers for me is:

A) don't want to indulge my tendency for cut and paste coding
B) I do want to maximize code reuse via inheritance

I came up with a solution somewhere between the eToys article you wrote
and your most recent post in this thread.  I attached it to this message
just for grins and giggles.



Attachment: TT.pm
Description: Perl program

Reply via email to