I have the following Nunjucks template supposed to render a list of items as list:
{% for item in items %}
<li>
{{item.title}}
</li>
{% endfor %}
and as table
<table border="1">
{% for item in items %}
<tr>
<td>{{item.title}}</td>
</tr>
{% endfor %}
</table>
The list is correctly rendered as
<li>a</li>
<li>b</li>
<li>c</li>
however the table is supposed to have three TR elements however it is rendered as
<table border="1">
<tr>
<td></td>
</tr>
</table>
Why is there only one TR element instead of three TR elements?
JSFiddle is here: