<if test="data.example.length">
<for each="example" in="data.example">
<p>Sample code:</p>
<pre>{+example+}</pre>
</for>
</if>