From 4e0bc56dcd3d6a2469bcbbb036776e8c57f2f1d6 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Fri, 24 Apr 2020 17:55:56 -0700 Subject: [PATCH] Move top-level templates to server module --- amanuensis/server/__init__.py | 2 +- amanuensis/{templates => server}/macros.jinja | 0 amanuensis/{templates => server}/page.jinja | 0 amanuensis/{templates => server}/page_1col.jinja | 0 amanuensis/{templates => server}/page_2col.jinja | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename amanuensis/{templates => server}/macros.jinja (100%) rename amanuensis/{templates => server}/page.jinja (100%) rename amanuensis/{templates => server}/page_1col.jinja (100%) rename amanuensis/{templates => server}/page_2col.jinja (100%) diff --git a/amanuensis/server/__init__.py b/amanuensis/server/__init__.py index f489b59..4b04664 100644 --- a/amanuensis/server/__init__.py +++ b/amanuensis/server/__init__.py @@ -13,7 +13,7 @@ def get_app(root: RootConfigDirectoryContext) -> Flask: with root.read_config() as cfg: app = Flask( __name__, - template_folder='../templates', + template_folder='.', static_folder=cfg.static_root ) app.secret_key = bytes.fromhex(cfg.secret_key) diff --git a/amanuensis/templates/macros.jinja b/amanuensis/server/macros.jinja similarity index 100% rename from amanuensis/templates/macros.jinja rename to amanuensis/server/macros.jinja diff --git a/amanuensis/templates/page.jinja b/amanuensis/server/page.jinja similarity index 100% rename from amanuensis/templates/page.jinja rename to amanuensis/server/page.jinja diff --git a/amanuensis/templates/page_1col.jinja b/amanuensis/server/page_1col.jinja similarity index 100% rename from amanuensis/templates/page_1col.jinja rename to amanuensis/server/page_1col.jinja diff --git a/amanuensis/templates/page_2col.jinja b/amanuensis/server/page_2col.jinja similarity index 100% rename from amanuensis/templates/page_2col.jinja rename to amanuensis/server/page_2col.jinja