Source

django-template-project / site / source / apps / main / templates / layout / menu.html

1
2
3
4
5
6
7
<div class="main-menu">
    <ul>
        <li class="{% if current_page == 'home' %} selected{% endif %}"><a href="/">Home</a></li>
        <li class="{% if current_page == 'menu1' %} selected{% endif %}"><a href="/menu1/">Menu 1</a></li>
        <li class="{% if current_page == 'menu2' %} selected{% endif %}"><a href="/menu2/">Menu 2</a></li>
    </ul>
</div>