Skip to content

Instantly share code, notes, and snippets.

@alykat
Last active August 29, 2015 14:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alykat/1a9e2409458080a13af4 to your computer and use it in GitHub Desktop.
Save alykat/1a9e2409458080a13af4 to your computer and use it in GitHub Desktop.
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