Created
September 20, 2013 19:31
-
-
Save talha131/6642646 to your computer and use it in GitHub Desktop.
Solution to problem at https://gist.github.com/hyperking/6640960
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
{% 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 %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output http://grab.by/qtae