NAME

Plack::App::TemplatedDirectory - Serve static files from document root with directory index

SYNOPSIS

  # app.psgi
  use Plack::App::TemplatedDirectory;
  my $app = Plack::App::TemplatedDirectory->new({ root => "/path/to/htdocs" })->to_app;
 

DESCRIPTION

This is a static file server PSGI application with directory index served through templates.

CONFIGURATION

root

Document root directory. Defaults to the current directory.

template

The template. Currently two templates are included, apache.tx and jqueryFileTree.tx.

Defaults to 'apache.tx'.

AUTHOR

Kaare Rasmussen

SEE ALSO

Plack::App::Directory