aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/main/index.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-09 12:19:55 +0000
committerGravatar GitHub <[email protected]>2018-02-09 12:19:55 +0000
commitb38a9f56e54eb21eec37f40075399961ba82906f (patch)
tree3255dc43a11734726509a1ed79d7dfa1da02cb63 /pysite/views/main/index.py
parentWeird, PyCharm didn't commit all my changes last push (diff)
Move from straight app registration to Blueprints (#6)
Diffstat (limited to 'pysite/views/main/index.py')
-rw-r--r--pysite/views/main/index.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pysite/views/main/index.py b/pysite/views/main/index.py
new file mode 100644
index 00000000..0c2d1578
--- /dev/null
+++ b/pysite/views/main/index.py
@@ -0,0 +1,10 @@
+# coding=utf-8
+from pysite.base_route import RouteView
+
+
+class IndexView(RouteView):
+ path = "/"
+ name = "index"
+
+ def get(self):
+ return self.render("index.html")