One way of solving this would be like this:

<table>

{{counter = 1}}

{{for row in rows:}}

  {{if counter == 1:}}

    <tr><td>{{=row.facility}}</td>

    {{counter = 2}}

  {{else:}}

    <td>{{=row.facility}}</td></tr>

    {{counter = 1}}

  {{pass}}

{{pass}}

</table>


Kenneth


I have the following code in a view:

<ul>
   {{for row in rows:}}
     <li>{{=row.facility}}</li>
   {{pass}}
</ul>

The length of rows varies. I would like to split the list in two list
and display it in two columns instead of one. Is it possible to do
this in the view, or should the function return rows_1 and rows_2?


Kind regards,

Annet.

Reply via email to