<commit_before>Builtin Template Tags
=====================

Generally you will get access to the menus created by treenav through
template tags.  Currently treenav offers four template tags to use.

Show Treenav
------------
.. highlight:: html+django

::

    {% show_treenav "top-level-slug" full_tree=False %}


This is the canonical tag you will be using.  It outputs nested lists starting
with all the children of the menu item with a slug matching top-level-slug.
Then it builds the next level down if one exists for the active leg of the tree
and so on.  Take note that only the active portion of the tree will be shown
unless `full_tree` is True.  To see the HTML output go to `Menu HTML Example`_.

Render Menu Children
--------------------

::

    {% render_menu_children model-object %}
<commit_msg>provide example of how to set full_tree to True<commit_after>Builtin Template Tags
=====================

Generally you will get access to the menus created by treenav through
template tags.  Currently treenav offers four template tags to use.

Show Treenav
------------
.. highlight:: html+django

::

    {% show_treenav "top-level-slug" full_tree=False %}


This is the canonical tag you will be using.  It outputs nested lists starting
with all the children of the menu item with a slug matching top-level-slug.
Then it builds the next level down if one exists for the active leg of the tree
and so on.  Take note that only the active portion of the tree will be shown
unless `full_tree` is True, i.e. ``full_tree="True"``.  To see the HTML output go to `Menu HTML Example`_.

Render Menu Children
--------------------

::

    {% render_menu_children model-object %}

{'fraction_non_alphanumeric': 0.11527035056446822, 'fraction_numerical': 0.0, 'mean_word_length': 3.329048843187661, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1741420', 'n_tokens_mistral': 464, 'n_tokens_neox': 441, 'n_words': 232}