code to go with upcoming blog post on templating