chickadee » spiffy-directory-listing

spiffy-directory-listing

Description

Flexible directory listing for Spiffy

Author

Mario Domenech Goulart

Requirements

Procedure

(spiffy-directory-listing path) procedure

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

(list-dotfiles? [boolean]) parameter

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

(list-directory [procedure]) parameter

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

(format-listing [procedure]) parameter

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.

(directory-listing-page [procedure]) parameter

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).

(directory-listing-css [css]) parameter

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).

(directory-listing-doctype [doctype]) parameter

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

(directory-listing-title [string]) parameter

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

License

BSD

Version history

0.1
Initial release

Contents »