NAME
Plack::Middleware::DirListing - Display a listing of a directory in html
SYNOPSIS
use Plack::Builder;
use Plack::App::File;
my $app = Plack::App::File->new({ root => '.' })->to_app;
builder {
enable "DirListing", root => '.';
$app;
}
DESCRIPTION
This Plack middleware provides the same functionality as Plack::App::Directory, but *only* serves the directory listing if the URL points to a directory. It does not try to serve any files.
It also strives to have a cleaner UI that more closely matches a prettified version of the Apache web server's output.
This modules does not attempt to find a default html file for the directory. If desired, include Plack::Middleware::DirIndex::Htaccess or Plack::Middleware::DirIndex before this module.
CONFIGURATION
- root
-
Document root directory. Defaults to the current directory.
AUTHOR
Keith Carangelo <kcaran@gmail.com>