[Templates] Apache::Template and persistant pnotes across internal_redirects

Rick Myers rik@sumthin.nu
Sun, 17 Mar 2002 18:45:22 -0500


On Mar 17, 2002 at 12:53:44 -0500, Perrin Harkins wrote:
> 
> > Let Apache::Registry do its thing, then let TT2 have its go
> > with stuff-ins from pnotes. Simple, eh?
> 
> It sounds like a lot of unnecessary overhead to me, but if you don't
> want to modify your legacy stuff that might be the easiest way to go.  I
> don't think it makes sense to make a change to Apache::Template for this
> though.  You can just subclass Apache::Template and override the
> params() method to look at the previous pnotes.

That's probably what I'd have done to start with, had I not
seen this in Template::Service::Apache::params()...

$params->{ uri } = $request->subprocess_env('REDIRECT_URL') || $request->uri()
    if $all or $plist->{ uri };

It just looked like to me that someone else had the idea of
supporting redirects, but only added the one bit they needed
at the time.

--rick