You have to pass discrete values to H::T and that gets really annoying to code up, both in Perl and in templates.
Say what? There's lots of ways to make this easy. Your "config object" could support a param() method, for example, allowing this to work:
$tmpl = HTML::Template->new(filename => "...", associate => $config);
Or your could just use a hash instead of an object and do:
$tmpl->param(%config);
Or you could keep your object and just write a method which returns the data in a hash, but is simpler than a full param():
$tmpl->param($config->hash());
In short, this is hardly a reason to drop HTML::Template (and has hardly anything to do with session handling).
-sam
In reply to Re^2: HTML::Template and authenticated sessions
by samtregar
in thread HTML::Template and authenticated sessions
by ghettofinger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |