Dancer-Plugin-DirectoryView
view release on metacpan or search on metacpan
lib/Dancer/Plugin/DirectoryView.pm view on Meta::CPAN
return sprintf("%d B", $size);
}
}
# This piece of HTML is borrowed from Plack::App::Directory, which admits to
# have stolen it from rack/directory.rb. The world of open-source is full of
# thieves.
$builtin_tpl->{layout} = <<END;
<html><head>
<title>[% path %]</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
table { width: 100%; }
.name { text-align:left; }
.size, .mtime { text-align:right; }
.type { width:11em; }
.mtime { width:15em; }
</style>
</head><body>
[% content %]
</body></html>
( run in 3.277 seconds using v1.01-cache-2.11-cpan-d7f47b0818f )