one year later , at the st. louis world 's fair , syrian pastry concessionaire ernest hamwi was making a wafflelike , cone-shaped persian pastry called `` zalabias '' when he gave some to a nearby ice cream vendor who had run out of dishes .