diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-17 12:41:41 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-17 12:44:59 -0700 |
commit | f142608716e8e5c0411715eb7bb0b88f65de0ee1 (patch) | |
tree | b30a65550fef201c5116b52d139e63b3fa7d2b53 /tools/web/main.py | |
parent | cf071d9846890a24d8d462f82da9b6d0f96d8fd2 (diff) | |
download | serverdata-f142608716e8e5c0411715eb7bb0b88f65de0ee1.tar.gz serverdata-f142608716e8e5c0411715eb7bb0b88f65de0ee1.tar.bz2 serverdata-f142608716e8e5c0411715eb7bb0b88f65de0ee1.tar.xz serverdata-f142608716e8e5c0411715eb7bb0b88f65de0ee1.zip |
Make the tmx converter update resnametable.txt
If/when we use static instancing, we'll have to change this.
Diffstat (limited to 'tools/web/main.py')
-rwxr-xr-x | tools/web/main.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/web/main.py b/tools/web/main.py new file mode 100755 index 00000000..b7501c5c --- /dev/null +++ b/tools/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) |