view shared_view/includes/menu.tt @ 11:573272ec604b

almost comlete doxygen library
author sergey
date Thu, 15 May 2014 18:24:02 +0400
parents
children d9551c7e7101
line wrap: on
line source

[% META class='IMPL::Web::View::TTMenuControl' %]
[% MACRO link(href,title) BLOCK %]
<a href="$href">$title</a>
[%- END %]
[% MACRO span(title) BLOCK %]
<span class="menu-item">$title</span>
[%- END %]
<ul class="$class" id="$id">
[% FOREACH item IN items %]
    <li [% IF item.active %]class="active"[% END %]>[% item.href ? link(item.href,item.title) : span(item.title) %]</li>
[% END %]
</ul>