7 ms·
I think the simplest static site generator is a command that visits all of your routes and saves the response html into a `build/` folder. That way you can use
by danneu 11y ago
I think the simplest static site generator is a command that visits all of your routes and saves the response html into a `build/` folder.
That way you can use whichever framework/stack/templating/database you're already familiar and productive with, and in the end you're just deploying a static build folder from localhost.
I started doing this when it came down to hacking Jekyll to implement something that's trivial to do in a microframework, so I went with microframework + page caching. I do the build and deploy with a gulp task that I'd like to generalize into a gulp module.
- jarek 11y agoI would suggest keeping it simple and scripting wget instead: https://www.gnu.org/software/wget/manual/html_node/Following-Links.html https://www.gnu.org/software/wget/manual/html_node/Following... Often all that is needed is -r --no-parent