PHP Classes

File: tests/assert_templates/ifchanged.tpl

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

Contents

Class file image Download
{% dictsort users regroup_field as sorted_users %} {% for user in sorted_users %} {% ifchanged %}Users with {{user['age'] }} years{% endifchanged %} {{ user['name'] }} {% endfor %} {% for user in sorted_users %} {% ifchanged user['age'] user['foo'] %}Users with {{user['age']}} years{% else %}continue{% endifchanged %} {{ user['name'] }} {% endfor %}