nav bar activate in jinja
{ % set navigation_bar = [
('/', 'index', 'Index'),
('/downloads/', 'downloads', 'Downloads'),
('/about/', 'about', 'About')
] -%}
{ % set active_page = active_page|default('index') -%}
...
<ul id="navigation">
{ % for href, id, caption in navigation_bar %}
<li{ % if id == active_page %} class="active"{ % endif
%}><a href="{{ href|e }}">{{ caption|e }}</a>
</li>
{ % endfor %}
</ul>{ % extends "layout.html" %}
{ % set active_page = "index" %}
Also in HTML:
- linking external pages html
- html set icon
- javascript escape html string
- vmplayer ubuntu
- how to create a do to
- salesforce aura input checkbox
- afjsi sein
- how to fix portrait orientation for android apps
- multiple forms in the same line html
- how to start a html file
- html iframe example
- script src tag in html
- material icons cdn
- number paragraphs in html
- execute js with innerhtml
- html em vs i
- embed Bokeh components to HTML
- align center html
- html how to add an image
- html reorder list aaccording
- ajouter des espaces en html
- how to disable zoom in html page on different screen resolutions
- foundation dropdown direction
- html email template