in reply to
Dancer2 - How to loop over a ref to a HoH
This is Template Toolkit 2 right? You cannot have dollar sign ($) in a variable name (like in partners.$partner.TPCOMPNAME), so you're referencing wrong item from the hash. See the docs.
My answer is wrong. See Re^2: Dancer2 - How to loop over a ref to a HoH from fishmonger.
Actually, according to the documentation, dollar signs are (or can be) used in var interpolation.
Could this solve your issue?
<% FOREACH partner IN partners.values %>
Partner: <% partner.TPCOMPNAME %> <% partner.TPTYPE %><br>
<% END %>
No, that didn't work under either of the template engines.
This is what works when using TT.
[% FOREACH partner IN partners.keys %]
Partner: [% partners.$partner.TPCOMPNAME %] [% partners.$partner.T
[% END %]
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (168 votes),