summaryrefslogtreecommitdiff
path: root/web/main.py
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-05-17 12:41:41 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-05-17 12:44:59 -0700
commit09e183bbe00971b57f29a88431e36ea7139c4e7a (patch)
tree880dc4795d89af7d2378d282021369b559a24c63 /web/main.py
parentf4237e0e4c265f92774230713b95d3d58bae0664 (diff)
downloadtools-09e183bbe00971b57f29a88431e36ea7139c4e7a.tar.gz
tools-09e183bbe00971b57f29a88431e36ea7139c4e7a.tar.bz2
tools-09e183bbe00971b57f29a88431e36ea7139c4e7a.tar.xz
tools-09e183bbe00971b57f29a88431e36ea7139c4e7a.zip
Make the tmx converter update resnametable.txt
If/when we use static instancing, we'll have to change this.
Diffstat (limited to 'web/main.py')
-rwxr-xr-xweb/main.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/web/main.py b/web/main.py
new file mode 100755
index 0000000..b7501c5
--- /dev/null
+++ b/web/main.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python2.6
+
+from flask import Flask
+
+from with_xml import Node
+
+app = Flask(__name__)
+
+@app.route('/')
+def index():
+ content = Node()
+ tag = content.tag
+ put = content.put
+ a = tag('a')
+ with tag('html'):
+ with tag('head'):
+ with tag('title'):
+ put('Title')
+ with tag('body'):
+ with tag('h1'):
+ put('Header')
+ put('This is ')
+ with a(href='http://google.com/'):
+ put('a link to Google.')
+ return str(content)
+
+if __name__ == '__main__':
+ app.run(debug=True)