Could call this formatTemplate()