1 from twisted.web.template import Element, renderer, XMLFile, tags
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(tags.p('Header.'), id='header')
12 def footer(self, request, tag):
13 return tag(tags.p('Footer.'), id='footer')