PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/tags/for/condition.test

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/tags/for/condition.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/tags/for/condition.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 269 bytes
 

Contents

Class file image Download
--TEST-- "for" tag takes a condition --TEMPLATE-- {% for i in 1..5 if i is odd -%} {{ loop.index }}.{{ i }}{{ foo.bar }} {% endfor %} --DATA-- return array('foo' => array('bar' => 'X')) --CONFIG-- return array('strict_variables' => false) --EXPECT-- 1.1X 2.3X 3.5X