Including a browser to achieve dynamic navigation
After incorporating the templates, views, and routes for traditional navigation, we will create a dynamic navigation system.
We declare a file in the app/app_template/components/_nav.html
path with the following content:
<ul class="nav__ul"> <li> <a href="#" class="nav__link nav__link nav__link-- page{% if active_nav == "home" %} active{% endif %}" ...