Updated XmlDataParser to use the Python 2.5 ElementTree interface.
[dead/pictar.git] / TemplateParser.py
1 import Configuration
2 from string import Template
3
4
5 class TemplateParser:
6
7 def GetPageTemplate(self):
8 """ Read the page template file into a string. """
9 page_template_path = Configuration.GetPageTemplatePath()
10 page_template_file = open(page_template_path, "r")
11 page_template = Template(page_template_file.read())
12 page_template_file.close()
13
14 return page_template