Closed tj closed 4 years ago
It's a bit different, but I saw a similar project monolith. Take a look. :)
I had an idea for a tool like this a while back that I planned to implement in Node.js, called "wjet" - if you implement this in Go, what do you think of calling it "wgot"?
Definitely open to name ideas, I have none haha. It's more or less working, I just need to make it a bit nicer and I'll push a repo. With zero optimizations it renders around ~7000 pages per second on my machine
still needs some polish but here we go! https://github.com/tj/staticgen
In "Pre-rendering static websites with wget" I mentioned how to do this with
wget
, however, a small Go tool could be much more efficient at this, and it would be a cool little project.Basically you'd start your web app, then run something like:
This would create a static copy of your site — to ./dist by default — ready for deployment.
-C
flag