This WebMake Perl library provides the sitetree tag.
Sitetree operates similarly to the built-in sitemap tag, but, displays
only a subset of all the site's nodes; it will map all of the top-level nodes
of the site, and then only the parent nodes of the current page. The effect is
similar to a tree-view-based file browser, like Windows Explorer.
In terms of differences in usage, where sitemap creates a single map which
includes every page in the site, sitetree maps only the pages up to and
including the current page, and generates a map for each individual output
Display of each page's entry in the tree is performed by expanding one of the 4
template content items named in the tag's attributes: closednode,
opennode, thispage, or leaf. See the sitemap tag documentation for
more details on how to use these (note however that the is_node variable
is not available for sitetrees).
A content item which is evaluated to display an ''open'' node, one which is on
the path to the current page. As for the sitemap tag's node attribute,
this content item must include a reference to the list variable, which will
contain all the entries for the pages beneath it in the hierarchy.