Did you know ... Search Documentation:
Pack weblog -- prolog/nav/menu.pl
PublicShow source
 wl_menu(+ID)// is det
Turns the object with id ID into a hierarchical menu.

Usually ID is a ul item, and it turns the entire list into a hierarchical menu.


\wl_menu(mymenu),
ul(id(mymenu), [
       li(a(href(#), 'Menu 1')),
       li([a(href(#), 'Has Submenu'),
           ul([
               li(a(href(#), 'Sub 1')),
               li(a(href(#), 'Sub 2'))
           ])])])