moving the template to its own gist:

https://gist.github.com/4532404