summaryrefslogtreecommitdiff
path: root/tools/web/main.py
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-12-14 10:32:08 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-12-14 10:32:08 -0800
commite34e49d3064640e01305549413c862ee0a7a79aa (patch)
tree863efe11d5aa9a079188df2c9f0c112c93e13074 /tools/web/main.py
parent45185408935a56197c308da7ae5d27d72fe06917 (diff)
downloadserverdata-e34e49d3064640e01305549413c862ee0a7a79aa.tar.gz
serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.tar.bz2
serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.tar.xz
serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.zip
Change tools/ to a submodule
Diffstat (limited to 'tools/web/main.py')
-rwxr-xr-xtools/web/main.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/tools/web/main.py b/tools/web/main.py
deleted file mode 100755
index b7501c5c..00000000
--- a/tools/web/main.py
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/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)