in reply to Hash of Hash Access in Template Toolkit
Ah the joy of posting a question and then figuring out the answer on your own. Is it the mind clarifying effect of posing the question? Does the revelation come from putting your trust in a higher power? Whateva.
Here is the code that does what I was attempting. Diffing with the non-working example is left as an exercise for the reader.
[% FOREACH bb IN blist.keys %] [% bb %] => [% blist.$bb %] <br/> [% FOREACH bkey IN blist.$bb.keys %] [% bkey %] => [% blist.$bb.$bkey %] [% END %] can I just specify? [% blist.$bb.curr %] <br/> [% END %]
Yields:
CoveredBridges400 => HASH(0xade6b0) checked => on curr => yes desc => Covered Bridges 400, May 9 can I just specify? off
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash of Hash Access in Template Toolkit
by shmem (Chancellor) on Apr 12, 2009 at 12:20 UTC | |
|
Re^2: Hash of Hash Access in Template Toolkit
by ww (Archbishop) on Apr 12, 2009 at 13:14 UTC |