NavigationTree.Bootstrap

Converts a navigation tree into an HTML string that fits into Twitter/Bootstraps “navbar-nav” schema for ULs.

See http://getbootstrap.com/components/#navbar

Summary

as_html(list)

Converts the tree to HTML

as_list(tree)

Converts tree to a list of keword lists; each representing a tag

as_list(node, level)
item_as_html(list1)

Converts a single tag represented as keyword list into an HTML string

li_children(node, level)
tree_to_html(tree)

Transforms a navigation tree into HTML, ignoring userrole settings

tree_to_html(tree, roles)

Tronsdorms an navigation tree into HTML, strips off parts that aren’t allowed for current userroles

Functions

as_html(list)

Converts the tree to HTML

as_list(tree)

Converts tree to a list of keword lists; each representing a tag

as_list(node, level)
item_as_html(list1)

Converts a single tag represented as keyword list into an HTML string

li_children(node, level)
tree_to_html(tree)

Transforms a navigation tree into HTML, ignoring userrole settings

tree_to_html(tree, roles)

Tronsdorms an navigation tree into HTML, strips off parts that aren’t allowed for current userroles