From a43bb9b13c9862d4b71e08ba58d3dff47f9cb885 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 29 Dec 2016 02:33:09 -0500 Subject: [PATCH] Add template module cache dir. --- .gitignore | 1 + calefaction/config.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index b13e3f4..2a8543c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ config/* config/modules/* data/* logs/ +templates/.cache/ !config/*.sample !config/modules diff --git a/calefaction/config.py b/calefaction/config.py index d9ac891..34e9ca4 100644 --- a/calefaction/config.py +++ b/calefaction/config.py @@ -73,6 +73,8 @@ class Config: """Install relevant config into the application, including modules.""" app.config["SERVER_NAME"] = self.get("site.canonical") app.config["PREFERRED_URL_SCHEME"] = self.scheme + app.config["MAKO_MODULE_DIRECTORY"] = str( + self._dir.parent / "templates" / ".cache") app.secret_key = self.get("auth.session_key") for module in self.modules: