Add static generator

Close #163
Oh really? How does that work?