I've published a small #Django library to solve a need I had to simply my site's navigation logic in the template, it may be useful to others!
Define your site’s navigation in settings, and simplify your templates.
Features:
➡️ Supports single or multiple navigation menus.
➡️ Automatic active state detection based on URL names or custom logic.
➡️ Conditionally display navigation items based on user permissions or other request attributes.
➡️ Supports nested navigation structures.
🛠️ https://github.com/benbacardi/django-nav-spec
📦 https://pypi.org/project/django-nav-spec/
I'm aware there are other libraries out there that do this, but this one's mine 😉 ideas and suggestions appreciated!
This is also my first time building a package to submit to PyPI using GitHub Actions, which was a fun adventure.