Make TemplateEngine configurable