Last active
December 23, 2015 13:29
-
-
Save talha131/6642404 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(',') %} | |
<li>{{ list }} | |
{% endfor %} | |
</ul> | |
{% endif %} | |
{% endfor %} | |
{% endfor %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is how the output appears http://grab.by/qt8i