Re: [htmltmpl] print several vars in one loop
Brought to you by:
samtregar
From: Roger B. W. <ro...@fi...> - 2004-09-23 15:31:23
|
On Thu, Sep 23, 2004 at 04:56:33PM +0200, Offer Kaye wrote: > >What do I write in my template to print 3 names per line, for example? What I tend to do is: In the data, put in a "linebreak" variable: $names = [ {name => name1}, {name => name2}, {name => name3, linebreak => 1}, etc. then use it in the template: <tmpl_loop names_loop><tmpl_var name> <tmpl_if name=linebreak><br></tmpl_if> </tmpl_loop> R |