From 09e183bbe00971b57f29a88431e36ea7139c4e7a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 17 May 2013 12:41:41 -0700 Subject: Make the tmx converter update resnametable.txt If/when we use static instancing, we'll have to change this. --- web/main.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 web/main.py (limited to 'web/main.py') 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) -- cgit v1.2.3-70-g09d2