3 ms·
Spot on. I think a hybrid approach would be good however as having maintained a huge static site, it's a pain in the arse getting templates etc right. I actua
by chrisjsmith 15y ago
Spot on. I think a hybrid approach would be good however as having maintained a huge static site, it's a pain in the arse getting templates etc right.
I actually have a static site generator that I wrote that uses Go to apply reusable templates (using the built in template package) and generate navigation that outputs static HTML only. The idea is that you store your HTML static documents in Mercurial, run the site through the site generator and rsync it to your web root. I really need to clean it up and chuck it on bitbucket.
- thomas11 15y agoI'd be interested in that code. There's lots of static site generators out there already--and like so many procrastinating nerds I wrote my own--but it'd be a nice real-world example of Go and its Template package.
- chrisjsmith 15y agoI'll clean it up and upload it when I get a chance - probably in the next couple of weeks. I'll post it to Show HN.