Added support for additional slots. Added a config param display_as_tree for controlling showing as tree or showing as horizontal wrapping list of navpills. Renamed open_tree() to is_tree_open() to indicate better it is a function. Updated the readme. Added conditional control of nav-stacked class in templates, for tree vs. list display.
Added nav_slot variable for use in controlling the class for the main nav div, which is set as class=container only for the beforebodyend slot.
Added test for display_as_tree.
Using better name for container class boolean.
Changed name of CSS id from navigation-tree to navigation-display, because it is not always a tree now. Can be simple navpills list.
Changed name back to navigation-tree and added a companion navigation-list, and now have conditional on the CSS id to set one or other.
Added explanation for the container class.
Added a param for including the context in the list items. Changed name from children to items to reflect the possible use as mixture. Modified template to show the context, the first list item, as a simple text li, if the boolean for using it is set.
Added use of repeat.item to distinguish from item.
Added param and condition for including context with children for list option.
Fixed the nav list styling, and now correctly using context.children for nav items list.
Changed context labels in nav list to be nav pills, so it is now obvious about current context (and context label still gets a colon added). Realized that handling for list in conditional in python code is simpler (include_root only applies if display_as_tree is True).
Removed the default configurator option. That way an explict choice as an entry in pyramid.includes is required.
Added setup for pyramid.includes entry in tests.
Added dropdown menu option for nav list items with children.
Changed the approach for nav list dropdowns, to have the item as on li and the caret as a separate li, so that the item itself is an active link (as a single item, the click action is a toggle only). Added CSS to adjust left and right padding of the <a> tags in these list items to make them fit tighter.
Added a nav_list_label string, as none, context, or custom, for better control of the optional list label. If custom label, now nav-header class is used in li, instead of a nav pill, but nav pill still used if label is context. Updated readme with directions.
Changed display_tree from boolean to display_type string, with options tree and horizontal. horizontal is the new nav pill list.
Updated the readme for new display_type param.
Improved the way context is optionaly used for labels, or how context is used within a label now, in horizontal displays. If the word context is found in the label provided in the ini file, it is replaced with context.title in the rendered label.