[htmltmpl] print several vars in one loop
Brought to you by:
samtregar
From: Offer K. <off...@gm...> - 2004-09-23 14:57:35
|
Hi, Say I've for got the following parameter passed to my template: names_loop => $names, Where $names looks like: $names = [ {name => name1}, {name => name2}, {name => name3}, # ... 50 such names ]; What do I write in my template to print 3 names per line, for example? Is this even possible or do I have to re-arrange my data? I tried: <tmpl_loop names_loop><tmpl_var name> <tmpl_var name> <tmpl_var name> </tmpl_loop> But that just printed each name 3 times :-( Thanks in advance, -- Offer Kaye |