Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bewype/flask/controllers/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'bewype/flask/controllers/index.py')
-rw-r--r--bewype/flask/controllers/index.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bewype/flask/controllers/index.py b/bewype/flask/controllers/index.py
new file mode 100644
index 0000000..10bfd04
--- /dev/null
+++ b/bewype/flask/controllers/index.py
@@ -0,0 +1,11 @@
+# (C) Copyright 2010 Bewype <http://www.bewype.org>
+
+# flask import
+from flask import render_template as r
+
+# bewype import
+from bewype.flask import app
+
+@app.route('/')
+def index():
+ return r('index.html', greetings='Welcome!')