I am trying to setup an internal menu (e.g. “about us | Team | Else” that works with dynamic routing where they share the same about template:
/about/team/:
template: about
data: page.team
to facilitate the user navigation, i would like to set an active class in the template file (team.hbs) that activate the menu element relevant to the navigation (eg: “about us | Team | Else”).
I have tried something like that:
<p class="{{#if current}} active {{/if}}">{{t "About us"}}</p>
I am in the hope that someone can help me correcting this code.