Skip to content

Instantly share code, notes, and snippets.

@talha131
Created September 20, 2013 19:31
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 talha131/6642646 to your computer and use it in GitHub Desktop.
Save talha131/6642646 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(',') %}
{% set splitted = list.split(':') %}
<li>{{ splitted[0] }} {{ splitted[1] }}
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
@talha131
Copy link
Author

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