Example #1
0
 def generateHTML(self):
     htmlGenerator = HTMLGenerator()
     htmlGenerator.addHTML(htmlGenerator.buildChildren(self))
     print lxml.html.tostring(htmlGenerator.getHTML())
     with open('myapp.html', 'w') as f:
         f.write(lxml.html.tostring(htmlGenerator.getHTML()))
Example #2
0
 def generateHTML(self):
     htmlGenerator = HTMLGenerator()
     htmlGenerator.addHTML(htmlGenerator.buildChildren(self))
     print lxml.html.tostring(htmlGenerator.getHTML())
     with open('myapp.html', 'w') as f:
         f.write(lxml.html.tostring(htmlGenerator.getHTML()))