Use simpler solution for parseTemplateContent