Last active
August 29, 2015 14:01
-
-
Save alykat/1a9e2409458080a13af4 to your computer and use it in GitHub Desktop.
Blog post: Jinja/copytext sample code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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