aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/main
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/views/main')
-rw-r--r--pysite/views/main/about/index.py8
-rw-r--r--pysite/views/main/about/rules.py8
-rw-r--r--pysite/views/main/index.py8
-rw-r--r--pysite/views/main/info/help.py8
-rw-r--r--pysite/views/main/info/index.py8
-rw-r--r--pysite/views/main/info/jams.py8
6 files changed, 18 insertions, 30 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"
diff --git a/pysite/views/main/about/rules.py b/pysite/views/main/about/rules.py
index 22e79afa..a40110a1 100644
--- a/pysite/views/main/about/rules.py
+++ b/pysite/views/main/about/rules.py
@@ -1,9 +1,7 @@
-from pysite.base_route import RouteView
+from pysite.base_route import TemplateView
-class RulesView(RouteView):
+class RulesView(TemplateView):
path = "/about/rules"
name = "about.rules"
-
- def get(self):
- return self.render("main/about/rules.html")
+ template = "main/about/rules.html"
diff --git a/pysite/views/main/index.py b/pysite/views/main/index.py
index ef5ed700..874961bb 100644
--- a/pysite/views/main/index.py
+++ b/pysite/views/main/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 = "/"
name = "index"
-
- def get(self):
- return self.render("main/index.html")
+ template = "main/index.html"
diff --git a/pysite/views/main/info/help.py b/pysite/views/main/info/help.py
index a47362fc..6a82a9ed 100644
--- a/pysite/views/main/info/help.py
+++ b/pysite/views/main/info/help.py
@@ -1,9 +1,7 @@
-from pysite.base_route import RouteView
+from pysite.base_route import TemplateView
-class HelpView(RouteView):
+class HelpView(TemplateView):
path = "/info/help"
name = "info.help"
-
- def get(self):
- return self.render("main/info/help.html")
+ template = "main/info/help.html"
diff --git a/pysite/views/main/info/index.py b/pysite/views/main/info/index.py
index f9fab682..97678ee4 100644
--- a/pysite/views/main/info/index.py
+++ b/pysite/views/main/info/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 = "/info/"
name = "info.index"
-
- def get(self):
- return self.render("main/info/index.html")
+ template = "main/info/index.html"
diff --git a/pysite/views/main/info/jams.py b/pysite/views/main/info/jams.py
index 9158091f..85b6a6dc 100644
--- a/pysite/views/main/info/jams.py
+++ b/pysite/views/main/info/jams.py
@@ -1,9 +1,7 @@
-from pysite.base_route import RouteView
+from pysite.base_route import TemplateView
-class IndexView(RouteView):
+class IndexView(TemplateView):
path = "/info/jams"
name = "info.jams"
-
- def get(self):
- return self.render("main/info/jams.html")
+ template = "main/info/jams.html"