now sucks less! handles expansion more than one template in a single string.