Each template is now an array of templates