I extended your example to a very simple command-line [tool](https://github.com/michelk/tmpl). Maybe others find it helpful, too.