This looks a lot like a Make rule to me.
%.html: %.md
generatehtml $^ >$@ %.html: %.md
generatehtml $^ >$@Turned out a hell of a lot faster than any static site generator I've used.
I use makefiles for a lot of things, they're very straight-forward. If you just follow the UNIX design philosophy, your programs are going to be makefile-useable anyways.