Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/repeat_4.txt
Test checks the basic iteration features.

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Print numbers from 0 to 9 with separator -->
<opt:root>
<opt:repeat times="10" str:separator="::">
{$opt.repeat}
</opt:repeat>
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
0::
1::
2::
3::
4::
5::
6::
7::
8::
9
Return current item: Open Power Template