App-htidx
view release on metacpan or search on metacpan
lib/App/htidx.pm view on Meta::CPAN
htidx DIRECTORY
Or in in your Perl scripts:
use App::htidx;
App::htidx::main($DIRECTORY);
=head1 INTRODUCTION
C<App::htidx> generates static HTML directory listings for a directory tree.
This is useful in scenarios where you are using a static hosting service (such
as GitHub Pages) which doesn't auto-index directories which don't contain an
C<index.html>.
=head1 DIRECTORY INDEX FILES
C<App::htidx> will create an C<index.html> file in each directory, unless one
or more files matching the pattern C<index.*> exist.
If C<index.html> exists and was previously created by C<App::htidx> then it will
be overwritten, otherwise it will be left as-is.
=head1 AUTHOR
Gavin Brown <gavin.brown@fastmail.uk>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Gavin Brown.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
__DATA__
th {
text-align:left;
}
td {
white-space: nowrap;
}
th:nth-child(2), th:nth-child(3), td:nth-child(2), td:nth-child(3) {
text-align:right;
}
table {
border-spacing: 0;
}
td,th {
margin: 0;
padding: 0.25em 1em;
}
th {
background-color: #e8e8e8;
}
tr:nth-child(even) {
background-color: #f0f0f0;
}
tr:nth-child(odd) {
background-color: #f8f8f8;
}
( run in 1.559 second using v1.01-cache-2.11-cpan-fe3c2283af0 )