Re: Static file server with Ersatz

2015-03-16 Thread Joe Bogner
Christophe, I wrote up an article a few years ago about creating a web app with ersatz and picoLisp: http://picolisp.com/wiki/?ersatzwebapp One of the subtle points of the article is that you need to modify the ersatz sources to remove the Static initialization of variables, otherwise it won't

Re: Static file server with Ersatz

2015-03-16 Thread Christophe Gragnic
Hi Alex, hi Joe. On Mon, Mar 16, 2015 at 9:41 AM, Alexander Burger a...@software-lab.de wrote: Hi Christophe, but with Ersatz. Has it been done ? If not, would it involve: 1) the use of the -server function in http.l I haven't thought about this in depth. 'server' might be ported to Ersatz

Static file server with Ersatz

2015-03-16 Thread Christophe Gragnic
Hi list, I'm investigating a way to be able to fire up a static file server like in Python: python -m http.server 8000 but with Ersatz. Has it been done ? If not, would it involve: 1) the use of the -server function in http.l 2) grab the path of the requested file 3) read the file and send it to

Re: Static file server with Ersatz

2015-03-16 Thread Alexander Burger
Hi Christophe, but with Ersatz. Has it been done ? If not, would it involve: 1) the use of the -server function in http.l I haven't thought about this in depth. 'server' might be ported to Ersatz perhaps, by omitting the (fork) stuff. 2) grab the path of the requested file 3) read the file