PHP Classes

File: tests/assert_templates/foreach_vars.tpl

Recommend this page to a friend!
  Classes of Cesar D. Rodas  >  Haanga  >  tests/assert_templates/foreach_vars.tpl  >  Download  
File: tests/assert_templates/foreach_vars.tpl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Haanga
Template engine to process Django style templates
Author: By
Last change: Update of tests/assert_templates/foreach_vars.tpl
Date: 3 years ago
Size: 625 bytes


Class file image Download
<div class='container'>
{% for category in categoriesArray %}
        <div class='mainCategoryList'>{{ }}
                {% for secondaryCategory in category.subCategories %}
                        <li class='secondaryCategoryList'>
                        {% if forloop.last %}
                                {{ secondaryCategory.categoria }}</li>
                        {% else %}
                                {{ secondaryCategory.categoria }},</li>
                        {% endif %}
                {% endfor %}
{% endfor %}
For more information send a message to info at phpclasses dot org.