Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/snippet_7.txt
Bug #144.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:extend file="extended1.tpl">
<opt:snippet name="html">
<opt:parent/>
Some content.
</opt:snippet>
</opt:extend>

>>>>templates/extended1.tpl
<?xml version="1.0" ?>
<opt:root>
<html opt:use="html">
<opt:attribute name="lang" value="pl" />
</html>
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
<html lang="pl">
Some content.
</html>
Return current item: Open Power Template