[Templates] Apache::Template and persistant pnotes across internal_redirects
Rick Myers
rik@sumthin.nu
Sat, 16 Mar 2002 18:22:58 -0500
On Mar 16, 2002 at 16:24:41 -0500, Perrin Harkins wrote:
>
> > The idea was to avoid yet another framework and just use
> > Apache::Template. To "pass in my data" I need something
> > else, which is the Registry script.
>
> Well, I thought you just said you had a Registry script already, or were
> planning to create one. It's trivial to call a template, and I don't
> think I would call that amount of code a framework. It could be this
> simple:
<snip>
Call me lazy. I don't want to replicate this stuff over 10
or 20 registry scripts then have to be sure later that they
all work exactly the same way. One typo here, one custom
change there. *sigh*
> However, if you're keen on using Apache::Template, the way you're
> supposed to do it is to subclass Template::Service::Apache and override
> the params() method to do all of your processing. See the
> Apache::Template docs for an example.
If I do that I've got to basically replicate
Apache::Registry to get my cgi's eval'ed.
Let Apache::Registry do its thing, then let TT2 have its go
with stuff-ins from pnotes. Simple, eh?
--rick