pubsubclient: 7ddea8573567a4d4c1287fb8215e487eb670ff1e
1: import lxml.etree as etree
2: from lxml.etree import ElementTree, Element, SubElement
3: import os
4:
5: page_file = open("start.html", 'w')
6:
7: page = Element('html')
8: head = SubElement(page, 'head')
9: css_link = SubElement(head, 'link', attrib={"rel":"stylesheet", "type":"text/css", "href":"page_settings/test1/item.css"})
10: body = SubElement(page, 'body')
11:
12: wholediv = SubElement(body, 'div', attrib={'class':'whole'})
13: titlediv = SubElement(wholediv, 'div', attrib={"class":"title"})
14: maindiv = SubElement(wholediv, 'div', attrib={"class":"main"})
15: body_text = SubElement(maindiv, 'a')
16: title = SubElement(titlediv, 'a')
17:
18: title.text = "Welcome to appname"
19:
20: body_text.text = "If you need any help please consult the documentation or email one of the developers."
21:
22: page_file.write(etree.tostring(page, pretty_print=True))
23: page_file.close()
24:
Generated by git2html.