3 ms·
Adding a watch system is not very complicate using `fsnotify`, I've done it for a toy blog app, so that it watches the `/posts/` folder for new Markdown, and th
by AYBABTME 13y ago
Adding a watch system is not very complicate using `fsnotify`, I've done it for a toy blog app, so that it watches the `/posts/` folder for new Markdown, and the `/templates/` folder for modified templates.
I've even made it rewrite (eradicate) templates that don't compile (threats).
https://github.com/aybabtme/brog/blob/master/brogger/template.go#L209:L229 https://github.com/aybabtme/brog/blob/master/brogger/templat...
At this point, the code is kind of messy, so please overlook that. I also have a bare deployment on an t1.micro : http://www.antoine.im/ http://www.antoine.im/