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
Be Appropriate && Follow Your Curiosity

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
    Is it the mind clarifying effect of posing the question?

    Absolutely. In your case, at least ;-)

    That happens often, and in most of these cases we don't even see the question here. Thanks for sharing the answer.

Re^2: Hash of Hash Access in Template Toolkit
by ww (Archbishop) on Apr 12, 2009 at 13:14 UTC