partially applied template