I needed a way to display a separator after all link in an extmenu except the last one....
... and you can do it in a quite simple way with Smarty
indeed
sample use
Code
<ul>
<!--[foreach from=$items key='myId' item='item' name='foo']-->
<li>
<!--[if $smarty.foreach.foo.first]--> First <!--[/if]-->
<!--[$item.label]-->
<!--[if $smarty.foreach.foo.last]--> Last<!--[/if]-->
</li>
<!--[/foreach]-->
</ul>
<!--[foreach from=$items key='myId' item='item' name='foo']-->
<li>
<!--[if $smarty.foreach.foo.first]--> First <!--[/if]-->
<!--[$item.label]-->
<!--[if $smarty.foreach.foo.last]--> Last<!--[/if]-->
</li>
<!--[/foreach]-->
</ul>
http://www.smarty.net/manual/en/language.function.foreach.php
