Location: PHPKode > projects > Open Power Template > tests/Opt/function/position_1.txt
Testing the position() function.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{position('foo bar joe', 'bar')}
{position('foo bar joe', 'goo')}
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
4
Return current item: Open Power Template