Hi,
You can't access hash's in the template. The only time you can is when you have an array of hashes, in that case you can use loops. Each time through the loop, the hash is available.
So you can do:
GT::Template->parse('file.html', { hash_loop => [ $hash1, $hash2, $hash3 ] });
<%loop hash_loop%>
Name: <%Name%>
<%endloop%>
Hope that helps,
Alex
--
Gossamer Threads Inc.
You can't access hash's in the template. The only time you can is when you have an array of hashes, in that case you can use loops. Each time through the loop, the hash is available.
So you can do:
GT::Template->parse('file.html', { hash_loop => [ $hash1, $hash2, $hash3 ] });
<%loop hash_loop%>
Name: <%Name%>
<%endloop%>
Hope that helps,
Alex
--
Gossamer Threads Inc.