I use
Template Toolkit to display an HTML page.
I have code like this:
<% FOR k IN kw.keys.sort %>
<li><% k %>
<ul>
<% FOR page IN kw.$k.keys %>
<li><a href="/<% page %>"><% kw.$k.$page %></a></li>
<% END %>
</ul>
</li>
<% END %>
that worked well, until today when I added a key to the 'kw' hash called 'keys'.
Now, instead of fetching all the keys of kw, it only fetches the single field which is called 'keys'. So instead of displaying a nice list of items, it only displayes one.
How can I convince TT to use the keys function to retreive all the keys again?