Add static generator

Close #163
Indeed. Would be great if we could still maintain readability, but yeah... writing strings is very hacky.