Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/attributes_build_2.txt
The test checks the basic opt:attributes-build functionality, if a standard
attribute is present.

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<opt:root>
<foo goo="value" opt:attributes-build="$input">
bar
</foo>
</opt:root>

>>>>data.php
$view->input = array(
	'abc' => 'def',
	'foo' => 'bar'
);

>>>>expected.txt
OUTPUT

>>>>result.txt
<foo goo="value" abc="def" foo="bar">
bar
</foo>
Return current item: Open Power Template