import Configuration from string import Template class TemplateParser: def GetPageTemplate(self): # Read the page template file into a string page_template_path = Configuration.GetPageTemplatePath() page_template_file = open(page_template_path, "r") page_template = Template(page_template_file.read()) page_template_file.close() return page_template