4 ms·
Always fun to read about how someone rolled their own, but as nerds we have to poke right? Why write a textile parser in Go? Run the JSON through one that's al
by cschep 15y ago
Always fun to read about how someone rolled their own, but as nerds we have to poke right?
Why write a textile parser in Go? Run the JSON through one that's already written? Store the posts pre-rendered?
- thomas11 15y agoExactly. He uses Disqus for comments, so it could actually be a static site. No worries about performance, caching, load, security anymore (almost).
- chrisjsmith 15y agoSpot 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.