Make the template location a parameter.