[stringtemplate-interest] How to fill a <table> grid wise?

Terence Parr parrt at cs.usfca.edu
Thu Oct 11 11:25:02 PDT 2007


	
On Oct 11, 2007, at 11:11 AM, StoreAdmin wrote:

> Hi Terrence,
>
> How about adding loop construct?
>
> ItemTable(columns) ::= <<
> <table>
> $items :{ v |
>    <tr>
>        $loop(columns)$
>            <td>$v:item_template() ; null="&nbsp;"$</td>
>        $endloop$
>    </tr>
> }$
> </table>
> >>

Well, i'm trying to avoid that kinda stuff.  I wonder if a[i] is very  
very bad.  If not, we could do names[i] names[i+1] etc...

Ter


More information about the stringtemplate-interest mailing list