chickadee » spiffy-directory-listing

spiffy-directory-listing

Description

Flexible directory listing for Spiffy

Author

Mario Domenech Goulart

Requirements

Procedure

spiffy-directory-listing pathprocedure

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? #!optional booleanparameter

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

list-directory #!optional procedureparameter

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

format-listing #!optional procedureparameter

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 #!optional procedureparameter

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 #!optional cssparameter

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 #!optional doctypeparameter

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

directory-listing-title #!optional stringparameter

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

License

BSD

Version history

0.1
Initial release

Contents »