Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For simple static sites with repetitive sections I don't want to write by hand, I find that building a simple generator in Ruby with ERB templates that loop over the rows in a SQLite table is the simplest way to do this. There's no dependencies to pull in, the ERB templates are already pretty close to HTML already, and there are plenty of GUI tools for SQLite files that make it easy to add rows by hand.


This is extremely underrated! ERB is a phenomenal tool for static site generation. Great templating language, excellent CLI tools, easy to wrap a script around. I honestly wish I'd done it sooner.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: