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: 4 years ago
Size: 625 bytes
 

Contents

Class file image Download
<div class='container'> {% for category in categoriesArray %} <div class='mainCategoryList'>{{ category.cat.categoria }} <ul> {% for secondaryCategory in category.subCategories %} <li class='secondaryCategoryList'> {% if forloop.last %} {{ secondaryCategory.categoria }}</li> {% else %} {{ secondaryCategory.categoria }},</li> {% endif %} {% endfor %} </ul> </div> {% endfor %} </div>