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:


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


The start level (an index into an array).


The end level (an index into an array).


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