factored out template module. see https://github.com/mkrull/gf-template