Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/component_11.txt
opt: attributes in :com should be skipped.

>>>>templates/test.tpl
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<opt:component from="$component">
<com:div foo="bar" opt:if="$foo">
Foo.
</com:div>
</opt:component>

>>>>data.php

$view->component = new myComponent;
$view->foo = true;

>>>>expected.txt
OUTPUT

>>>>result.txt
VIEW PASSED
ATTRIBUTE MANAGEMENT FOR: div
foo: bar
<div foo="bar">
Foo.
</div>
Return current item: Open Power Template