NavigationTree.Server

Summary

as_html(roles, atom2)

Return an HTML string suitable to fit in a navbar in a Twitter/Bootstrap environment

get()
node_of(path)

Returns node at given path. Path must be a either

path_of(url)

Returns node path for given url

start_link(root_node)

Functions

as_html(roles, atom2)

Return an HTML string suitable to fit in a navbar in a Twitter/Bootstrap environment.

  • roles must be a list of user roles (strings)
  • atom2 must be either
  • :bootstrap (currently the only supported framework)
  • a module implementing tree_to_html( tree, roles )
get()
node_of(path)

Returns node at given path. Path must be a either

  • A list of node names traversing the stree starting with root node’s name
  • An URL string. URL must be absolute e.g. “/admin/users”
path_of(url)

Returns node path for given url

start_link(root_node)