Plack::App::TemplatedDirectory - Serve static files from document root with directory index
# app.psgi use Plack::App::TemplatedDirectory; my $app = Plack::App::TemplatedDirectory->new({ root => "/path/to/htdocs" })->to_app;
This is a static file server PSGI application with directory index served through templates.
Document root directory. Defaults to the current directory.
The template. Currently two templates are included, apache.tx and jqueryFileTree.tx.
Defaults to 'apache.tx'.
Kaare Rasmussen
Plack::App::Directory
To install Plack::App::TemplatedDirectory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::TemplatedDirectory
CPAN shell
perl -MCPAN -e shell install Plack::App::TemplatedDirectory
For more information on module installation, please visit the detailed CPAN module installation guide.