How to update navigation templates


What would be the best method of updating a template that’s used for navigation? For instance, if you have the following code.

{{> navigation}}
{{> body}}

Then the site directs to different pages within the body template but you want the class of links to change in the navigation template such that they update to show that’s the active link.


I found a module for it.