The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Orze::Sources::Menu - Build a page tree, suitable for a menu

DESCRIPTION

If there is a base attribute, use the value as the root of the tree (it expects the name of a page). Otherwise, use the current page (you can also set base="." if you want).

If base="/", use the root of the website as the root of the tree.

All pages without a title variable or with the notinmenu attribute set to 1 will be ignored.

The output is a list of hash pointer of the form:

  {
                name => 'name_of_the_page',
                title => 'Title of the page',
                extension => 'extension_of_the_page',
                path => 'path/to/name_of_the_page',
                submenu => pointer to a list of the same form,
  }

METHOD

evaluate