It'd be great to be able to pass in a user- or session-specific variable to test the path. For example, let's say I have the following paths:
- /users
- /users/:_id
- /users/:_id/edit
And let's say the navigation is:
I'd like to make the "Users" link active for all 3 of the paths, except if I'm editing my own User account, then I want "My Name" to be active.
I tried doing something like this but it didn't work:
<li class="{{ isActivePath '{{ currentUser._id }}/edit' }}">
Is this already possible? Is this a limitation of Blaze/Handlebars?
TIA.
It'd be great to be able to pass in a user- or session-specific variable to test the path. For example, let's say I have the following paths:
And let's say the navigation is:
I'd like to make the "Users" link active for all 3 of the paths, except if I'm editing my own User account, then I want "My Name" to be active.
I tried doing something like this but it didn't work:
<li class="{{ isActivePath '{{ currentUser._id }}/edit' }}">Is this already possible? Is this a limitation of Blaze/Handlebars?
TIA.