Make templatePath globally configurable