Tim Noll <[EMAIL PROTECTED]> said something to this effect on 02/11/2002:
> It's my understanding that caching compiled templates will
> speed up performance, as will using a global Template object
> instead of a local one. Please take a look at the sample code
> below and tell me if I'm on the right track here. This seems to
> work fine, but I just wanted to confirm that this is the
> correct way of doing this.
You are definitely on the right track.
I would call "$template ||= Template->new" code inside handler,
to ensure that if $template is somehow undef'ed, it is recreated
when needed.
Have you looked into Apache::Template? Your handler doesn't do
anything that it doesn't already do, plus it's been debugged
quote a bit. :)
(darren)
--
Faith is a cop-out. It is intellectual bankruptcy. If the only
way you can accept an assertion is by faith, then you are
conceding that it can't be taken on its own merits.
-- Dan Barker