Skip to content

Instantly share code, notes, and snippets.

@alykat
Last active August 29, 2015 14:01
Embed
What would you like to do?
Blog post: Jinja/copytext sample code
<table>
<thead>
<tr>
<th>{{ COPY.labels.hdr_category }}</th>
<th>{{ COPY.labels.hdr_jan }}</th>
<th>{{ COPY.labels.hdr_feb }}</th>
<th>{{ COPY.labels.hdr_mar }}</th>
</tr>
</thead>
{% for row in COPY.data %}
<tr>
<td data-title="{{ COPY.labels.hdr_category }}">{{ row.category }}</td>
<td data-title="{{ COPY.labels.hdr_jan }}">{{ row.jan }}</td>
<td data-title="{{ COPY.labels.hdr_feb }}">{{ row.feb }}</td>
<td data-title="{{ COPY.labels.hdr_mar }}">{{ row.mar }}</td>
</tr>
{% endfor %}
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment