diff --git a/dist/app-1.0.0-py3-none-any.whl b/dist/app-1.0.0-py3-none-any.whl index e13fe83..daa79ee 100644 Binary files a/dist/app-1.0.0-py3-none-any.whl and b/dist/app-1.0.0-py3-none-any.whl differ diff --git a/dist/app-1.0.0.tar.gz b/dist/app-1.0.0.tar.gz index b1d656e..65813e8 100644 Binary files a/dist/app-1.0.0.tar.gz and b/dist/app-1.0.0.tar.gz differ diff --git a/src/app/app.py b/src/app/app.py index e55aba3..e6f953a 100644 --- a/src/app/app.py +++ b/src/app/app.py @@ -23,16 +23,17 @@ def get_timestamp(): formatted_datetime = now.strftime("%Y-%m-%d %H:%M:%S") return formatted_datetime + class BaseView(web.View): - @property + @property def app(self): return self.request.app - - @property + + @property def template_path(self): return pathlib.Path(self.request.app.template_path) - + async def render_template(self, name, context=None): if not context: context = {}