Re: [Templates] serializing/freezing the TT object

[prev] [thread] [next] [Date index for 2005/04/07]

From: Perrin Harkins
Subject: Re: [Templates] serializing/freezing the TT object
Date: 16:21 on 07 Apr 2005
On Thu, 2005-04-07 at 18:12 +0200, Nick Sutterer wrote:
> my web-environment saves all necessary objects as serialized objects between 
> different requests. i know i could do that with plenty of existing modules, 
> but it's a testing environment that uses as less components as possible.
> 
> so i have to re-instantiate the Template object every time? hmmm....

What's your environment?  With a persistent environment like mod_perl or
FastCGI, you should just keep the Template object in a global between
requests.  With CGI you should instantiate it every time.

- Perrin


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] serializing/freezing the TT object
Nick Sutterer 13:52 on 07 Apr 2005

Re: [Templates] serializing/freezing the TT object
Perrin Harkins 15:59 on 07 Apr 2005

Re: [Templates] serializing/freezing the TT object
Nick Sutterer 16:12 on 07 Apr 2005

Re: [Templates] serializing/freezing the TT object
Perrin Harkins 16:21 on 07 Apr 2005

Generated at 14:44 on 11 Apr 2005 by mariachi v0.52