Mercurial > pub > site.implab
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/shared_view/includes/menu.tt Thu May 15 18:24:02 2014 +0400 @@ -0,0 +1,12 @@ +[% 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> \ No newline at end of file