Use correct method to parse a template