[3101] Mako templates.

Gist: https://gist.github.com/mjelonek92/662edd8fd45674948a8e