Using menus in templates¶
django-menus provides only one template tag.
get_menu
template tag¶
The template tag has following syntax:
{% get_menu MENU_NAME [as VARIABLE_NAME] [with VAR1=VAL1 VAR2=VAL2] %}
It propagates a menu data structure to the VARIABLE_NAME
.
Note
If VARIABLE_NAME
is omitted MENU_NAME
is used.
Accessing and displaying menus¶
django-menus support multilevel menus