<ul id="menu">
	{foreach $menu as $item}
	<li><a {if $item.active}class="current" {/if}href="{if $item.external}{$item.path|escape:'url'}{else}{url href=$item.path}{/if}">{$item.tree_name|escape}</a></li>
	{/foreach}
</ul>
