dynamic templates aved to locals as an array