Macros ====== render_navbar() ---------------- Render a navigation header Example ~~~~~~~~ .. code-block:: jinja {% from 'milligram/nav.html' import render_navbar %} {{ render_navbar([('index', 'Home'), ('other', 'Other'), ('about', 'About')])}} API ~~~~ .. py:function:: render_navbar(navigation) :param navigation: An array-like object contains at least one sub array-like object whose first element is the endpoint used to generate URL and second is the text displayed. render_breadcrumb() -------------------- Render a navigation breadcrumb. Example ~~~~~~~~ .. code-block:: jinja {% from 'milligram/nav.html' import render_breadcrumb %} {{ render_breadcrumb([('index', 'Home'), ('other', 'Other'), ('about', 'About')], use_ol=True)}} API ~~~~ .. py:function:: render_breadcrumb(navigation, use_ol=False) :param navigation: An array-like object contains at least one sub array-like object whose first element is the endpoint used to generate URL and second is the text displayed. :param use_ol: Default to generate ``