comparison shared_view/includes/menu.tt @ 12:d9551c7e7101

improved dox library
author sergey
date Fri, 16 May 2014 16:47:50 +0400
parents 573272ec604b
children
comparison
equal deleted inserted replaced
11:573272ec604b 12:d9551c7e7101
1 [% META class='IMPL::Web::View::TTMenuControl' %] 1 [% META class='IMPL::Web::View::TTMenuControl' %]
2 [% MACRO link(href,title) BLOCK %] 2 [% MACRO link(href,title) BLOCK -%]
3 <a href="$href">$title</a> 3 <a href="$href" class="menu-item"><span class="menu-item-icon">&nbsp;</span>$title</a>
4 [%- END %] 4 [%- END %]
5 [% MACRO span(title) BLOCK %] 5 [% MACRO span(title) BLOCK -%]
6 <span class="menu-item">$title</span> 6 <span class="menu-item"><span class="menu-item-icon">&nbsp;</span>$title</span>
7 [%- END %] 7 [%- END %]
8 <ul class="$class" id="$id"> 8 <ul class="$class" id="$id">
9 [% FOREACH item IN items %] 9 [% FOREACH item IN items ~%]
10 <li [% IF item.active %]class="active"[% END %]>[% item.href ? link(item.href,item.title) : span(item.title) %]</li> 10 <li [% IF item.active %]class="active"[% END %]>[% item.href ? link(item.href,item.title) : span(item.title) %]</li>
11 [% END %] 11 [%~ END %]
12 </ul> 12 </ul>