Is there not a way to set variables within a Template between the time you call new() and the time you call process(). I am in a mod_perl environment, so my Template object is created once at initial startup. I have an init() method I call upon each request and I need to set several Template variables within this method. This init() method takes place long before the process() method on the Template object is invoked.
Looking through the Template docs, I am not seeing any $tt->param(foo => 'bar'); or anything similar. All I see is the VARIABLES/PRE_DEFINE keys you can pass to new() and the variable hash you pass in process(). Looking through Template's code, the variable stash ends up being handled via XS, so I can't determine how to hack the internals. Am I stuck simply setting my own global stash within init() and then including that stash in my call to process()?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |