Location: PHPKode > projects > Open Power Template > tests/Opt/function/spacify_2.txt
Testing the spacify() function in the aggregate version.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{@vars is spacify($vars, '-')}
{@vars.v1}
{@vars.v2}
</opt:root>

>>>>data.php
$view->vars = array(
	'v1' => 'hi universe',
	'v2' => 'hi universe'
);

>>>>expected.txt
OUTPUT

>>>>result.txt
h-i- -u-n-i-v-e-r-s-e
h-i- -u-n-i-v-e-r-s-e
Return current item: Open Power Template