add ‘contexts’ option to allow one template to have multiple targets