old-homepage/index.py

7 lines
215 B
Python
Raw Normal View History

2016-04-12 17:41:50 +00:00
from htmlgen import *
2016-04-12 17:50:14 +00:00
print("Content-type: text/html")
print()
2016-04-12 17:41:50 +00:00
html=htmlgen.HTMLgen(pagelayout.getLayoutXML().decode('utf-8'),"Home Page")
html.addArticle("Markdown test","*Hello, World!*")
print(html.renderSite())