If you have a datastructure that looks like
{
foo=>1234,
bar=>"iron",
other=>{ color=>"orange", foo=>3.14, bar=>"brass" },
}
it would be nice to have a way to access the elements of other ...
I envision something like
<TMPL_SCOPE NAME="other">
<div style="color:<TMPL_VAR color>;"><TMPL_VAR name="bar"></div>
</TMPL_SCOPE>
this would be a slight variation on the TMPL_LOOP with the main
difference being that there is only one of them, rather than a list of
them.. ie.. it's going to get a HASH ref instead of a LIST ref that
contains HASH refs.
I'm looking at the code now, I don't think this should be *too*
difficult. but any time you have to grok someone elses code it is
going to take longer than it would someone who is already familiar
with it.
-rob.
|