Skip to content

Instantly share code, notes, and snippets.

@talha131
Last active December 23, 2015 13:29
Show Gist options
  • Save talha131/6642404 to your computer and use it in GitHub Desktop.
Save talha131/6642404 to your computer and use it in GitHub Desktop.
{% if article.productvariations %}
{% for category_groups in article.productvariations.split('|') %}
{% for category in category_groups.split('=') %}
{% if loop.first %}
<h1>{{ category }}</h1>
{% else %}
<ul>
{% for list in category.split(',') %}
<li>{{ list }}
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
@talha131
Copy link
Author

this is how the output appears http://grab.by/qt8i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment