You are looking at historical revision 18562 of this page. It may differ significantly from its current revision.

Description

Breadcrumbs for web pages

Author

Mario Domenech Goulart

Requirements

None

Procedures

[procedure] (add-breadcrumb! path title)

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

[procedure] (get-breadcrumb path)

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

Parameters

[parameter] (breadcrumbs-home-path [string])

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

[parameter] (breadcrumbs-home-label [string])

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

[parameter] (breadcrumbs-separator [string])

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

[parameter] (breadcrumbs-link [procedure])

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>"))))
[parameter] (debug-breadcrumbs [boolean])

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

License

BSD

Version history

0.1
Initial release