AlexCharlton / site-generator

A command-line static site generator written in Common Lisp
BSD 2-Clause "Simplified" License
43 stars 7 forks source link

Auto-refresh pages hosted on test server #5

Open AlexCharlton opened 11 years ago

AlexCharlton commented 11 years ago

Requires Javascript injection.

ghost commented 6 years ago

I will work this out using the same code injected by atom-live-server extension.

ghost commented 6 years ago

Apparently the simpler solution is to duplicate the file before injection. I randomly tried to write a custom version of hunchentoot’s handler for static files to avoid the use of a tmp directory but it was a big pain in the ass to get something working with curl.

I might not have thought it through but I’ll go with the temporary files for now.

(Wow, been a month)

Edit : https://github.com/AlexCharlton/site-generator/blob/18834db0b0fade45fe5ebb9a9fcda605c6472c19/src/test-server.lisp#L42-L51