in reply to Re^2: Template Toolkit - Setting variables between new() and process()
in thread Template Toolkit - Setting variables between new() and process()

Sounds like you could just return this data from init() instead of trying to add it to a template at that point. You probably shouldn't be coupling your init() method so closely with the templating API, in case you want to switch template modules at some point.

It doesn't sound very useful to me to make the template object act as temporary storage, but you're welcome to subclass Template and add it if you really want it.

  • Comment on Re: Re^2: Template Toolkit - Setting variables between new() and process()