<sb-menu> |

<sb-menu> is defined in the SiteBuilder tags module. Produces a menu from a menu file or directory listings, suitable for usage together with the `<navigation>` tag.

Arguments passed to the tag: |
menu, above, below, history, dirs, glob, type, path,

Attributes

`menu`=filename
  Reads the menu from a menu file with this name. If there are no menu file in the current directory and a `dir`, `type` or `glob` attribute is present, a directory listing will be read instead. If not, the tag will search for a menu file with this name in the parent directory and its parent directory until a suitable menu file is found or all directories has been tried.

`above`

  Only produce the part of the menu above and including the selected entry.

`below`

  Only produce the part of the menu below the selected entry.

`history`

  Creates the menu from all the directories in the path, including the current directory.

`dirs`

  Create a menu from all directories in the directory specified by the `attribute` or the current directory. Can be combined with the `glob` and `type` attributes as well as the `menu` attribute.

`glob`=glob-pattern,glob-pattern,...
  Create a menu from the files whos name match one of the glob patterns. It searches for files in the directory specified with the `path` attribute or the current directory. Can be combined with the `dirs` and `type` attributes as well as the `menu` attribute.

`type`=glob-pattern,glob-pattern,...
  Create a menu from the files whos content type match one of the glob patterns. It searches for files in the directory specified by the `path` attribute or the current directory. Can be combined with the `dirs` and `glob` attributes as well as the `menu` attribute.

`path`=path
  Change which directory the `dirs`, `glob` and `type` attributes should work on.

Example

source code

      Appendix
    Introduction
    Introduction
    Introduction
    Introduction
    Introduction
    img

    "=> >

result | Appendix Introduction Introduction Introduction Introduction Introduction img