Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
[0.1.0] - 2026-02-24
Breaking changes
-
The
prettyoption is now set when creating theWebServer::DirIndexobject, not when callingto_html. If you were passing a second argument toto_html, move it to the constructor:# Before my $html = $di->to_html('/some/dir/', 1); # After my $di = WebServer::DirIndex->new(dir => $dir, dir_url => '/', pretty => 1); my $html = $di->to_html('/some/dir/');
Changed
- Enabling
prettynow automatically enables icons as well. If you want the enhanced CSS but no icons, passicons => 0explicitly. - Icons remain enabled by default even when
prettyis not set.
[0.0.3] - 2026-02-23
Added
- File-type icons — each entry in the listing now shows a Font Awesome 6 icon that matches the file's type (document, image, video, archive, etc.). The required stylesheet is loaded automatically from the Font Awesome CDN.
- New
iconsparameter onWebServer::DirIndex->new(defaults to true). Seticons => 0to produce a plain listing without icons.
[0.0.2] - 2026-02-22
Added
- New
WebServer::DirIndex::Fileclass representing a single file entry in a directory listing, with accessors forurl,name,size,mime_type,mtime, andicon.
Changed
- The
Plackdependency has been removed. The module now usesMIME::Typesfor file-type detection andHTML::Escapefor output escaping.
Fixed
- Corrected the copyright year.
0.0.1 - 2026-02-21
Added
- Initial release of
WebServer::DirIndex,WebServer::DirIndex::HTML, andWebServer::DirIndex::CSS.