A dynamic template complex mediates Munc18-chaperoned SNARE assembly