RE: [Templates] multilevel hash to table, plus bonus question

[prev] [thread] [next] [Date index for 2004/09/03]

From: Thomas, Mark - BLS CTR
Subject: RE: [Templates] multilevel hash to table, plus bonus question
Date: 16:22 on 03 Sep 2004
> 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.

Feel free to swipe code from my template (or the whole thing), which does
just that, except it handles arrays and hashes in any combination. Example
at http://www.markthomas.org/perl/test.pl, followed by Data::Dumper output
so you can compare.

- Mark.


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

RE: [Templates] multilevel hash to table, plus bonus question
Thomas, Mark - BLS CTR 16:22 on 03 Sep 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52