This is where things are slightly odd. My code is structured in such a way that all the data is generated and then passed to process(). This init() method is the exception. The data I need to set is simple stuff such as a "logged_in => 1" so I know which menus to print out in the template (ie: login/register for no login, settings/logout for logged in users). I do wonder why there is no way of doing $tt->param(logged_in => 1);. Sounds like it could be used plenty.
In reply to Re^2: Template Toolkit - Setting variables between new() and process()
by Anonymous Monk
in thread Template Toolkit - Setting variables between new() and process()
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |