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

spiffy-directory-listing

Description

Flexible directory listing for Spiffy

Author

Mario Domenech Goulart

Requirements

Procedure

[procedure] (spiffy-directory-listing path)

Generates an HTML page using the directory listing from the given path (a string). It's supposed to be used as the value for Spiffy's handle-directory parameter.

Parameters

[parameter] (list-dotfiles? [boolean])

Indicates whether filenames whose name start with . should be listed.

[parameter] (list-directory [procedure])

An one argument procedure to generate the directory listing for the given path.

[parameter] (format-listing [procedure])

A two-arguments procedure used to format the directory listing. The two arguments are: the path being listed and the list of files under the given path.

[parameter] (directory-listing-page [procedure])

A two-arguments procedure used to format the listing page. The two arguments are: the path being listed and the page contents (usually the formatted directory listing).

[parameter] (directory-listing-css [css])

The CSS rules to be applied to the directory listing page. The syntax for the parameter value is the same as for the css keyword parameter for html-utils's html-page (considering that the default value for directory-listing-page uses html-page).

[parameter] (directory-listing-doctype [doctype])

The doctype (a string) to be used for the directory listing page (see the doctype egg).

[parameter] (directory-listing-title [string])

The title (a string) to be used for the directory listing page.

License

BSD

Version history

0.1
Initial release