2016-04-12 17:52:18 +00:00
|
|
|
|
#!/usr/bin/env python3
|
2016-04-12 17:41:50 +00:00
|
|
|
|
from htmlgen import *
|
2016-04-12 17:51:03 +00:00
|
|
|
|
print("Content-type: text/html\r\n\r\n")
|
2016-04-12 17:41:50 +00:00
|
|
|
|
html=htmlgen.HTMLgen(pagelayout.getLayoutXML().decode('utf-8'),"Home Page")
|
2016-06-12 12:27:29 +00:00
|
|
|
|
html.addArticle("Markdown test","""*
|
|
|
|
|
* 1
|
|
|
|
|
* 2
|
|
|
|
|
* 3
|
|
|
|
|
|
|
|
|
|
# 1
|
|
|
|
|
# 2
|
|
|
|
|
# 3
|
|
|
|
|
|
|
|
|
|
## half adder truth table
|
|
|
|
|
|
|
|
|
|
| | 0 | 1 |
|
|
|
|
|
|---|---|---|
|
|
|
|
|
| 0 |0 0|0 1|
|
|
|
|
|
| 1 |0 1|1 0|
|
|
|
|
|
""")
|
2016-04-12 17:53:50 +00:00
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
2016-06-12 12:27:29 +00:00
|
|
|
|
SPOILERS:
|
|
|
|
|
>! SPOILERED!
|
|
|
|
|
>! ロボボプラネットはいいぞ!
|
2016-04-12 17:53:50 +00:00
|
|
|
|
|
2016-06-12 12:27:29 +00:00
|
|
|
|
""")
|
2016-04-12 18:11:51 +00:00
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**TEST**""")
|
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**TEST**""")
|
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**TEST**""")
|
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**TEST**""")
|
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**TEST**""")
|
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**TEST**""")
|
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**TEST**""")
|
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**TEST**""")
|
|
|
|
|
html.addArticle("Markdown test","""*Hello, World!*
|
|
|
|
|
|
|
|
|
|
test
|
|
|
|
|
test
|
|
|
|
|
**HI**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-12 17:53:50 +00:00
|
|
|
|
**TEST**""")
|
2016-04-12 18:02:16 +00:00
|
|
|
|
print("<!DOCTYPE html>")
|
2016-04-12 17:41:50 +00:00
|
|
|
|
print(html.renderSite())
|