site-generator
site-generator copied to clipboard
Auto-refresh pages hosted on test server
Requires Javascript injection.
I will work this out using the same code injected by atom-live-server extension.
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