1 from twisted.web.template import Element, renderer, XMLFile
2 from twisted.python.filepath import FilePath
4 class ExampleElement(Element):
5 loader = XMLFile(FilePath('template-1.xml'))
8 def header(self, request, tag):
9 return tag('<<<Header>>>!')
12 def footer(self, request, tag):
13 return tag('>>>"Footer!"<<<', id='<"fun">')