Re: [Templates] serializing/freezing the TT object
[prev]
[thread]
[next]
[Date index for 2005/04/07]
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