Re: mod_autoindex string pluggability

2013-08-06 Thread Ben Reser
On Mon, Aug 5, 2013 at 5:51 AM, Tim Bannister is...@jellybaby.net wrote: How about implementing XHTML → JSON as a filter? Either with existing modules or with something dedicated to autoindex. That sounds really ugly if you ask me. For one thing he's trying to avoid parsing XHMTL so now

Re: mod_autoindex string pluggability

2013-08-06 Thread Daniel Lescohier
output_directories seems html-specific code. Why not implement a brand-new output_directories_json, and have index_directories() function choose which function to call based on query args? Anyway, index_directories() has to change to send the correct content-type header, and to skip emit_head and

Re: mod_autoindex string pluggability

2013-08-06 Thread Sven Dowideit
On 05/08/13 22:51, Tim Bannister wrote: How about implementing XHTML → JSON as a filter? Either with existing modules or with something dedicated to autoindex. Heya Tim, thankyou - I'll file that away for future thought - I don't know anything about apache filters, so it might come in handy

Re: mod_autoindex string pluggability

2013-08-06 Thread Sven Dowideit
On 07/08/13 06:55, Daniel Lescohier wrote: output_directories seems html-specific code. Why not implement a brand-new output_directories_json, and have index_directories() function choose which function to call based on query args? Anyway, index_directories() has to change to send the correct

mod_autoindex string pluggability

2013-08-05 Thread Sven Dowideit
Hello Everyone, I'm scratching an itch to make mod_autoindex output what I want, and would love to know what, if anything would make the changes merge-able. In its simplest form, I'd like apache to be able to give me an index in JSON format - previously, I've parsed the html in javascript, but

Re: mod_autoindex string pluggability

2013-08-05 Thread Tim Bannister
How about implementing XHTML → JSON as a filter? Either with existing modules or with something dedicated to autoindex. TimOn 05/08/2013 7:26 Sven Dowideit wrote: Hello Everyone, I'm scratching an itch to make mod_autoindex output what I want, and would love to know what, if anything would make