Add function description for canTemplate