jstemplate

46 views
Skip to first unread message

Didi

unread,
Oct 4, 2014, 8:35:00 AM10/4/14
to google-j...@googlegroups.com
Hi all.
I have data:

var input = {  items: ['A', 'B', 'C'] };

I wanted to get the transformation

<table>
<tr><td colspan="2">1-A</td></tr>
<tr><td>1</td><td>A</td></tr>

<tr><td colspan="2">2-B</td></tr>
<tr><td>2</td><td>B</td></tr>

<tr><td colspan="2">3-C</td></tr>
<tr><td>3</td><td>C</td></tr>
</table>

Help me make jstemplate that will make this transformation

mesch

unread,
Oct 4, 2014, 11:44:50 AM10/4/14
to google-j...@googlegroups.com
You need to use a jsselect on a <tbody> element around the row group you want to repeat, <http://www.w3.org/TR/html401/struct/tables.html#h-11.2.3>.
Reply all
Reply to author
Forward
0 new messages