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

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{countWords('hi universe')}
{countWords('open power template')}
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
2
3
Return current item: Open Power Template