chickadee » breadcrumbs

breadcrumbs

Description

Breadcrumbs for web pages

Author

Mario Domenech Goulart

Requirements

None

Procedures

(add-breadcrumb! path title) procedure

Adds a breadcrumb for path path (string) with title title (string).

(get-breadcrumb path) procedure

Return the formatted breadcrumbs for path path (a string). The breadcrumbs are formatted by breadcrumb-link (see the Parameters section).

Parameters

(breadcrumbs-home-path [string]) parameter

The home path for the breadcrumbs chain. The defaul value is "/".

(breadcrumbs-home-label [string]) parameter

The label to be used for the home path breadcrumb. The default value is "Home".

(breadcrumbs-separator [string]) parameter

The separator for breadcrumbs. The default value is ">".

A two-arguments procedure to make breadcrumbs links. The first argument is the breadcrumb URI and the second one the breadcrumb label. The default value is:

(lambda (uri text)
  (string-append "<a href='" uri "'>" text "</a>"))))
(debug-breadcrumbs [boolean]) parameter

When #t prints to stdout debugging information about breadcrumbs internals. The default value is #f.

License

BSD

Version history

0.1
Initial release

Contents »