Vou ter mostrar um exemplo que eu criei no meu site.
na view criei uma função menu.
public function nav_header()
{
return array(
array('href' => url::base(TRUE, 'http')."" , 'text' => 'Home' , 'active' => $this->section === 'index',),
array('href' => url::base(TRUE, 'http')."checkout" , 'text' => 'Check Out' , 'active' => $this->section === 'checkout',),
array('href' => url::base(TRUE, 'http')."support" , 'text' => 'Support' , 'active' => $this->section === 'support',),
array('href' => url::base(TRUE, 'http')."faqs" , 'text' => 'FAQs' , 'active' => $this->section === 'faqs',),
array('href' => url::base(TRUE, 'http')."contact" , 'text' => 'Contact' , 'active' => $this->section === 'contact',),
);
}
E no template ficará assim:
{{#nav_header}}
<ul>
<li {{#active}}class="active"{{/active}}><a href="{{href}}" title="{{text}}">{{text}}</a></li>
</ul>
{{/nav_header}}
Ae se vc quiser cria um if vc poe:
{{#nav_header}}
<ul>
<li {{#active}}class="active"{{/active}}><a href="{{href}}" title="{{text}}">{{text}}</a></li>
</ul>
{{/nav_header}}
{{^nav_header}}
Para ver o menu é preciso ter Login
{{/nav_header}}