Skip to content

chsanch/plack-middleware-dirindex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Plack::Middleware::DirIndex - Middleware to use with Plack::App::Directory and the like

SYNOPSIS

use Plack::Builder;
use Plack::App::File;
use Plack::Middleware::DirIndex;

my $app = Plack::App::File->new({ root => './htdocs/' })->to_app;

builder {
      enable "Plack::Middleware::DirIndex", dir_index => 'index.html';
      $app;
}

DESCRIPTION

If $env->{PATH_INFO} ends with a '/' then we will append the dir_index value to it (defaults to index.html)

COPYRIGHT & LICENSE

Copyright (c) 2012 Leo Lapworth. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

About

Middleware to use with Plack::App::Directory and the like

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Other 53.0%
  • Perl 47.0%