aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/main/about/index.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-05-15 14:40:11 +0100
committerGravatar Gareth Coles <[email protected]>2018-05-15 14:40:11 +0100
commitaf412314eaba6a955b364da2ff7e4dbfb8eb7003 (patch)
tree9f9e7a1ac2d0db240c56569de6a964969eb10505 /pysite/views/main/about/index.py
parentUpdate font-awesome to 5.0.13 (diff)
Add TemplateView class for views that only render a template
Diffstat (limited to 'pysite/views/main/about/index.py')
-rw-r--r--pysite/views/main/about/index.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/pysite/views/main/about/index.py b/pysite/views/main/about/index.py
index 9f211702..6f5ef1c8 100644
--- a/pysite/views/main/about/index.py
+++ b/pysite/views/main/about/index.py
@@ -1,9 +1,7 @@
-from pysite.base_route import RouteView
+from pysite.base_route import TemplateView
-class IndexView(RouteView):
+class IndexView(TemplateView):
path = "/about/"
name = "about.index"
-
- def get(self):
- return self.render("main/about/index.html")
+ template = "main/about/index.html"