Several listing enhancements
The start point for this patch is the will to get an official ubuntu repository (fr.archive.ubuntu.com) from apache to lighty. For this, we have to keep some of the mechanisms ubuntu gives us and transfer them from apache to lighty. I tried to implement some of the mod_autoindex things in lighty mod_dirlisting, keeping in mind that it should stay light.The patch attached basically changes the following things :
- add dir-listing.encode-header and dir-listing.encode-readme, these options are booleans. It gives the ability to provide a valid html file as HEADER.txt and README.txt, these files are just printed before and after the actual listing. A further enhancement would be to choose the name of those files.
- add dir-listing.auto-layout, this option is a boolean. When disabled, it will remove the html part lighty was automatically outputing as the start of the page and the end (from <DOCTYPE to <body> and </body></html>). This lets the possibility to take care of those parts in the header and readme files.
- add dir-listing.pre-list, this option is a boolean. When enable, it will replace the <div></div> around the listing by < pre > < /pre > keeping the same css class.
Also available in: Atom