Split variables from template.