Listings folder

Hi,

here's my code for implementing the new config variable LISTINGS_FOLDERS from Issue #1499.

It currently contains an ugly hack in plugins/compile/rest/listing.py to fix a bug and implement support for sites using the listing directive without specifying the file's path. I'm currently not sure how to implement that better.

Best,
Felix
Yes, it does. But listing.py sends the filename without the second .html, and Listings.listing_path already sees an .html so it won't add a second -- and you get a link to the .html file and not the .html.html file. (And with my new code, you actually get an error, since Listings doesn't have the .html file in its xxx_input_file_mapping dicts.)