Hi all,
Lately I've been doing some plain html and javascript hacking on *.html and *.js file, and I found the apache directory listing to be quite handy (IE won't let you run scripts from file:/// so you must host it in a server and access with http://localhost/).
I'm using mod_lisp w/ apache so this is not a problem for me but I intend to use hunchentoot alone when it stabilized.
I've seen people asking for this before so here's a simple patch to enable directory listing for create-folder-dispatcher-and-handler.
Originally I want to change the signature from
create-folder-dispatcher-and-handler (uri-prefix base-path &optional content-type)
to
create-folder-dispatcher-and-handler (uri-prefix base-path &optional create-index-page-p content-type)
but it makes it inconsistent with the other api. (and that I don't need to update the documentation :-)
Anyway attached are the diffs so feel free to change it if you really don't want the index page enabled by default.
Cheers, -- Mac
(PS The code should look less horrible if cl-who is available but it's really a pain since I don't want to introduce dependencies to hunchentoot. There is one function copied directly from cl-fad for the same reason)