summaryrefslogtreecommitdiff
path: root/server/src/templateparser.cc
diff options
context:
space:
mode:
authordeva <deva>2009-07-30 07:23:42 +0000
committerdeva <deva>2009-07-30 07:23:42 +0000
commit965506c3e9ab1dca32c7be51c0271af78721c821 (patch)
tree559c30c1c30393f30df8b0e1f941c43cdaafddbf /server/src/templateparser.cc
parent2239aeea03f5d8321f1a8e14551690cc0bebdb56 (diff)
Updated the example template to contain new tags/attributes.
Diffstat (limited to 'server/src/templateparser.cc')
-rw-r--r--server/src/templateparser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc
index 49cc29d..8ddf6d2 100644
--- a/server/src/templateparser.cc
+++ b/server/src/templateparser.cc
@@ -57,13 +57,13 @@ void TemplateParser::error(const char* fmt, ...)
free(p);
}
-TemplateParser::TemplateParser(std::string course)
+TemplateParser::TemplateParser(std::string templatefile)
{
state = UNDEFINED;
t = new Template();
current_macro = NULL;
- file = Conf::xml_basedir + "/templates/" + course + ".xml";
+ file = templatefile;//Conf::xml_basedir + "/templates/" + course + ".xml";
PRACRO_DEBUG(macro, "Using template file: %s\n", file.c_str());
@@ -168,7 +168,7 @@ int main()
Conf::xml_basedir = "../xml/";
try {
- TemplateParser parser("example");
+ TemplateParser parser("../xml/templates/example.xml");
parser.parse();
Template *t = parser.getTemplate();