+ Moved variables resolution in the compiler Parser. (Temp. solution until the new...
[haanga.git] / tests / assert_templates / foreach_vars.tpl
blob281e8015146cac472828f55762e5c30a1a3d9383
1 <div class='container'>
2 {% for category in categoriesArray %}
3         <div class='mainCategoryList'>{{ category.cat.categoria }}
4                 <ul>
5                 {% for secondaryCategory in category.subCategories %}
6                         <li class='secondaryCategoryList'>
7                         {% if forloop.last %}
8                                 {{ secondaryCategory.categoria }}</li>
9                         {% else %}
10                                 {{ secondaryCategory.categoria }},</li>
11                         {% endif %}
12                 {% endfor %}
13                 </ul>
14         </div>
15 {% endfor %}
16 </div>