Re: [Templates] multilevel hash to table, plus bonus question
[prev]
[thread]
[next]
[Date index for 2004/09/03]
Thanks for the response Dave.
> This is something you'd have a hard time doing even in Perl.
Hmm, I thought maybe TT would make it easy for me by not treating "A.B"
as a hash key but as two keys, but I guess yep, I am asking the
impossible, or the unlikely at least.
> Just out of curiosity, why do you need to show portions of a
> multi-level hash in a flattened representation?
Well, that's just what my API returns, a hash ref with that sort of
structure. I will probably write something that recurses through the
hash and creates multiple levels of table headers but I was just going
for something super quick and dirty.
Next qn: Sometimes my API returns an IxHash, ie an ordered hash. When
this happens I cannot use the hash virtual methods, although they all
make logical sense. IxHash has methods like Keys Values similar to the
vmethods, but the case is different. Any ideas here?
thanks, jamie
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates