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 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 perhaps, by

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 be

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 fi