Template-Toolkit - Retrieve stack value having '.' in the key

Posted on Fri Sep 15 00:44:46 2006 by hpham
Retrieve stack value having '.' in the key
Hi guys,

Let's say we have this variable stack:

VARIABLES => { version => 3.14, 'a.b' => 'Sahara', },

If I try to access the key 'a.b' using [% a.b %], TT will try to retrieve the value of key 'b' in hash a, which leads to wrong output. Is there anyway to escape it to fetch the correct value?

Thanks.

Write a response