Mercurial > pub > site.implab
view shared_view/includes/menu.tt @ 12:d9551c7e7101
improved dox library
author | sergey |
---|---|
date | Fri, 16 May 2014 16:47:50 +0400 |
parents | 573272ec604b |
children |
line wrap: on
line source
[% META class='IMPL::Web::View::TTMenuControl' %] [% MACRO link(href,title) BLOCK -%] <a href="$href" class="menu-item"><span class="menu-item-icon"> </span>$title</a> [%- END %] [% MACRO span(title) BLOCK -%] <span class="menu-item"><span class="menu-item-icon"> </span>$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>