From af412314eaba6a955b364da2ff7e4dbfb8eb7003 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 15 May 2018 14:40:11 +0100 Subject: Add TemplateView class for views that only render a template --- pysite/views/main/info/jams.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'pysite/views/main/info/jams.py') 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" -- cgit v1.2.3