Add scope specs to template.