Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/snippet_1.txt
Check the snippet instruction.

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<opt:root>
<opt:snippet name="foo">Value:{$val}</opt:snippet>
Foo:<opt:insert snippet="foo" />
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
Foo:Value:Bar
>>>>data.php
$view->val='Bar';
Return current item: Open Power Template