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.0.3] - 2026-02-23
Added
- Icons column in directory listing using Font Awesome 6 (CDN).
- New
iconsparameter onWebServer::DirIndex(defaults to true) to enable or disable the icon column. - New
iconparameter onWebServer::DirIndex::Fileholding the explicit Font Awesome CSS class string for the entry's icon. - New
iconsparameter onWebServer::DirIndex::File(defaults to false); when true, the icon is automatically derived frommime_typeusing a built-in mapping; an explicitly suppliediconvalue always takes precedence. - New
file_html_iconsanddir_html_iconstemplates inWebServer::DirIndex::HTMLfor icon-aware rendering. - Icon mapping in
WebServer::DirIndex::Filecovers: directories, parent directory, plain text, HTML/CSS/JS/JSON/XML (code), CSV, PDF, Word, Excel, PowerPoint, images, audio, video, archives (zip/tar/gz/bz2/rar), with a generic file icon as the fallback. .iconCSS rule added to both standard and pretty stylesheets inWebServer::DirIndex::CSS.
[0.0.2] - 2026-02-22
Changed
- Replaced
Plack::MIMEwithMIME::Typesfor MIME type lookups. - Replaced
Plack::Util::encode_htmlwithHTML::Escape::escape_htmlfrom theHTML::Escapemodule, removing the dependency onPlackentirely. - Converted
sub file_htmlandsub dir_htmlinWebServer::DirIndex::HTMLfrom class methods (subs) to fields with:reader, making them instance-level read accessors. - Converted
sub standard_cssandsub pretty_cssinWebServer::DirIndex::CSSfrom plain subs to fields with:reader, making them instance-level read accessors. - Updated callers in
WebServer::DirIndex,WebServer::DirIndex::File, and tests to use->new->methodinstead of->methodforWebServer::DirIndex::HTML. - Moved
render()method fromWebServer::DirIndex::HTMLtoWebServer::DirIndex::to_html. - Added
to_html()method toWebServer::DirIndex::Filethat renders a single file entry as an HTML table row (with all fields HTML-escaped). Therender()method inWebServer::DirIndexnow delegates to this method per file.
Added
- New
WebServer::DirIndex::Fileclass to encapsulate directory entry data (url, name, size, mime_type, mtime).
Fixed
- Correct copyright date.
0.0.1 - 2026-02-21
Added
- Initial release of
WebServer::DirIndex,WebServer::DirIndex::HTML, andWebServer::DirIndex::CSS.