$overlay{_template.html#body} $begin{content}

For any page, the Gizmo gz.fill.directory.Directory class offers methods to generate contextual (where and for who) crumb, menu & tree data in a uniform format. This may then be rendered into Hierarchical Navigation by the site's skin, externally and independently of the page itself.

As a demo, each page here, below /nav/, displays the data returned by the following Gizmo Directory methods:

${dump_crumbs_menus()}

Within these demo pages, the crumbs at top of each page are rendered from the result of Directory.get_crumbs(), while the menu on the right is rendered from the result of Directory.get_crumbed_menu().

${site.ViewSrc('ipy', 'nav.qpy#code', collection='pages', title='Python source : gizmo(qp) directory and sub-directories, /nav/', )} $end{content}