module Webgen::Tag::BreadcrumbTrail

Generates a breadcrumb trail for the page. Such a breadcrumb trail is especially useful when pages are in deep hierarchies of directories.

Public Class Methods

call(tag, body, context)

Create the breadcrumb trail.

nodes(website, options)

Return the list of nodes that make up the breadcrumb trail of a node while respecting the parameters.

The options hash needs to include the following keys:

:alcn

The alcn of the node for which the breadcrumb trail should be generated.

:start_level

The start level (an index into an array).

:end_level

The end level (an index into an array).

:omit_dir_index

If set, omits the last path component if it is a directory index.