Split the template variables in a new file