http.server.static: sort files for static html directory listing. seems to be sorted on mac already, but not on linux. consider allowing a sort order parameter in the future.
parent
9da7863917
commit
0f217b9cf0
|
@ -66,7 +66,7 @@ TUPLE: file-responder root hook special index-names allow-listings ;
|
|||
[ file-name ]
|
||||
[ drop f ]
|
||||
[
|
||||
[ file-name ] [ [ [ file>html ] map ] with-directory-files ] bi
|
||||
[ file-name ] [ [ natural-sort [ file>html ] map ] with-directory-files ] bi
|
||||
[XML <h1><-></h1> <ul><-></ul> XML]
|
||||
] tri
|
||||
simple-page ;
|
||||
|
|
Loading…
Reference in New Issue