{% tabulate 'example-table' of thing in things table_option='something' %}
{% cell column_option='something'%}
Heading 1
{% rowvalue %}
{{ thing.value }}
{% cell %}
Heading 2
{% rowvalue %}
{{ thing.other_value }}
{% endtabulate %}
|
V
<table id="example-table" data-table-option="something">
<thead>
<tr>
<th data-column-option="something">Heading 1</th>
<th>Heading 2</th>
</tr>
</thead>
<tbody>
{% for thing in things %}
<tr>
<td>{{ thing.value }}</td>
<td>{{ thing.other_value }}</td>
</tr>
{% endfor %}
</tbody>
</table>
Comments