Subject: | methods don't work if top data reference is an object |
Sample:
my $self = bless {},$class;
my $tt = Template->new();
$tt->process($template, $self, \$content);
Using [% session %] doesn't call the method "session" of "$self" as
expected but tries to access $self->{session}.
Adding $self->{data} = $self; and using [% data.session %] works as
described in the manual pages.
[% session() %] doesn't work, too.