in reply to Iterating over hash of arrays in Template Toolkit
In the innermost loop of the template, choice takes on the value of each of the list elements, but you're using it as an index instead. Try this:
[% FOREACH choice IN data.$type.$company.$name.choice_list %] [% choice %]<br> [% END %]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Iterating over hash of arrays in Template Toolkit
by punch_card_don (Curate) on Apr 10, 2007 at 16:08 UTC |