Location: PHPKode > projects > Open Power Template > tests/Opt/instruction/put_3.txt
In OPT 2.0-RC1, there was found a problem in the compiler that caused the code buffer
linking twice, if the specified node was the last on the queue in the current nesting
level. This unit test reproduces this situation with opt:put.

The test checks the basic opt:put functionality.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<p><opt:put value="$sect.item" opt:section="sect" str:separator=" / "/></p>


<p>A / B / C / D</p>

$view->sect = array(0 =>
	array('item' => 'A'),
	array('item' => 'B'),
	array('item' => 'C'),
	array('item' => 'D')
Return current item: Open Power Template