Has anyone considered using Markdown.pl or PHPME as an Apache handler for Markdown files? It would be very slick to post straight .text files and have them rendered behind the scenes, although for high traffic sites pre-rendering would obviously be much more efficient. I suppose I'd also want an escape hatch like daringfireball.net's, perhaps disabling rendering if the URL includes ?nomarkup or something like that, but for now I'm just trying to get CGI behavior for Markdown.pl or markdown.php. ;) Regards, Chris Pepper -- Chris Pepper: <reppep.com/~pepper> <extrapepperoni.com> The Rockefeller University: <rockefeller.edu>
Reply to Chris Pepper <pepper at reppep.com> 07-03-04 00:56:>Has anyone considered using Markdown.pl or PHPME as an Apache >handler for Markdown files? It would be very slick to post >straight .text files and have them rendered behind the scenes, >although for high traffic sites pre-rendering would obviously >be much more efficient.You can do this using a simple cgi script and a rewrite rule in Apache, it's very easy to do ( = I've done it). jem
If someone is interested in the script I use (it's not finished - I was/is going to add more feature but ran out of time - but it's usable) you can find it here <code.mostrom.pp.se/Markdown/SinglePage> jem