]> git.sesse.net Git - xml-template/blob - python/include.py
0c87fba879a750765b67c040baefc98dd41930e9
[xml-template] / python / include.py
1 #! /usr/bin/python
2 import xmltemplate
3
4 doc = xmltemplate.process_file("../xml/included.xml", {
5         "color": "red"
6 }, False)
7 master = xmltemplate.process_file("../xml/master.xml", {
8         "title": "Main HTML title",
9         "h1": "Nice heading here",
10         "contents": doc
11 });
12 print master.toxml()