Re: [Templates] loop by 3 or 4

[prev] [thread] [next] [Date index for 2005/05/02]

From: Stephen Howard
Subject: Re: [Templates] loop by 3 or 4
Date: 05:13 on 02 May 2005
[%
FOREACH foo = bar;
'</tr><tr>' UNLESS loop.count % 3;   # or 4
 %]
<td>[% foo %]</td>
[% END %]

Robert wrote:

>I want to create a table with some data but I want the table to start a 
>new row every 3 or 4 times I pull some data out.
>
>Robert
>
>
>_______________________________________________
>templates mailing list
>templates@xxxxxxxxxxxxxxxx.xxx
>http://lists.template-toolkit.org/mailman/listinfo/templates
>
>  
>

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

[Templates] loop by 3 or 4
Robert 23:08 on 01 May 2005

Re: [Templates] loop by 3 or 4
Jonathan Tweed 23:14 on 01 May 2005

Re: [Templates] loop by 3 or 4
Stephen Howard 05:13 on 02 May 2005

[Templates] Re: loop by 3 or 4
Robert 19:34 on 02 May 2005

Generated at 10:28 on 04 May 2005 by mariachi v0.52