Phoenix, templates, and active navbar items

We build a web-app, and want the items on the navigation bar to be active when the user visits the corresponding page, like this:

An animated example of active navigation bar items.

I'm not saying that this is a complicated task in other frameworks, but it often feels "hacky". Here is a phoenix solution that feels pretty elegant …

Continue reading »