From b28062b7ce8336bb2c7feac564ef0f368e1950c8 Mon Sep 17 00:00:00 2001 From: richard-dds Date: Thu, 2 Aug 2018 13:27:58 -0400 Subject: [PATCH] Remove .to extension from header and footer templates --- atst/app.py | 4 ---- templates/base.html | 2 +- templates/{footer.html.to => footer.html} | 0 templates/{header.html.to => header.html} | 0 4 files changed, 1 insertion(+), 5 deletions(-) rename templates/{footer.html.to => footer.html} (100%) rename templates/{header.html.to => header.html} (100%) diff --git a/atst/app.py b/atst/app.py index 286cf1b9..cd54f15d 100644 --- a/atst/app.py +++ b/atst/app.py @@ -57,10 +57,6 @@ def make_flask_callbacks(app): "atat_permissions": [], } - # TODO: Make me a macro - def modal(self, body): - return self.render_string("components/modal.html.to", body=body) - def map_config(config): return { diff --git a/templates/base.html b/templates/base.html index 8a421227..2414f6f1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -31,7 +31,7 @@ - {% include 'footer.html.to' %} + {% include 'footer.html' %} {% block modal %}{% endblock %} diff --git a/templates/footer.html.to b/templates/footer.html similarity index 100% rename from templates/footer.html.to rename to templates/footer.html diff --git a/templates/header.html.to b/templates/header.html similarity index 100% rename from templates/header.html.to rename to templates/header.html