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 thread safe.



On Mon, Mar 16, 2015 at 3:51 AM, Christophe Gragnic <
christophegrag...@gmail.com> wrote:

> 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 the client
> 4) write a little file explorer when requesting a directory
> ?
>
> BTW, wouldn't it be more correct to say
> «Then the -server function is called»
> than
> «Then the server function is called»
> near the end of this section:
> http://software-lab.de/doc/app.html#server
>
>
> Thanks.
>
> --
>
> http://profgra.org/lycee/ (site pro)
> http://delicious.com/profgraorg (liens, favoris)
> https://twitter.com/profgraorg
> http://microalg.info
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subjectUnsubscribe
>

Reply via email to