--TEST-- Template Test: include.html --FILE-- range('a', 'z'), 'foo' => 'bar', ) ); --EXPECTF-- ===Compiling include.html=== ===Compiled file: include.html=== the variable is foo,ENT_COMPAT,'UTF-8');?> options['strict'] || (is_array($t->range) || is_object($t->range))) foreach($t->range as $key => $value) {?>options); $x->compile('include_block.html'); $_t = clone $t; foreach(array('key','value') as $k) { if ($k != 't') { $_t->$k = $$k; } } $x->outputObject($_t, $this->elements); ?>
===With data file: include.html=== the variable is bar
0 a
1 b
2 c
3 d
4 e
5 f
6 g
7 h
8 i
9 j
10 k
11 l
12 m
13 n
14 o
15 p
16 q
17 r
18 s
19 t
20 u
21 v
22 w
23 x
24 y
25 z