-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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:
| Home | Users | Ny Name |
|---|
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.
Metadata
Metadata
Assignees
Labels
No labels