You could do:
GT::Template->parse ('file.html', { Name1 => $Object1->{Name}, Name2 => $Object2->{Name} ... });
and then use <%Name1%>, <%Name2%>. If the value of a tag is a hash, there is no way in the template to access it. You could use a global though:
sub {
my $tags = shift;
return "Name1: $tags->{Object1}->{Name}, Name2: $tags->{Object2}->{Name} ... ";
}
Cheers,
Alex
--
Gossamer Threads Inc.
GT::Template->parse ('file.html', { Name1 => $Object1->{Name}, Name2 => $Object2->{Name} ... });
and then use <%Name1%>, <%Name2%>. If the value of a tag is a hash, there is no way in the template to access it. You could use a global though:
sub {
my $tags = shift;
return "Name1: $tags->{Object1}->{Name}, Name2: $tags->{Object2}->{Name} ... ";
}
Cheers,
Alex
--
Gossamer Threads Inc.