Hello,
I'm having trouble using objects with the template toolkit, and i'm hoping someone can
offer some advice...
I have a homemade object, $u, which I pass from a cgi to a template:
$vars->{"user"} = $u;
$tt->process("template", $vars);
In the template, I'm trying to access the objects attributes, for example:
[% user.username %]
(with this object, in a script I would access that attribute using $u->{"username"})
I'm sort of new to perl and very new to the template toolkit. Is there something I am
missing here? I've been able to use the cgi object with template toolkit using a very
similar syntax, so i assumed it would be the same, but it simply isn't working.
thanks in advance,
kristina
p.s. I apologize if this question was badly phrased. please let me know if you need
any more info