separate vars and tempalte list