diff options
author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-02-14 01:42:06 +0100 |
---|---|---|
committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-02-14 01:42:06 +0100 |
commit | bbb5e23551fd62d2372f96a9d4187cac276eb059 (patch) | |
tree | bb11cfa4935da06c437f339e6234655a003aa701 | |
parent | 3ff269c84c936a3ffc2e8e3168a4ac017047015b (diff) | |
download | searxng-bbb5e23551fd62d2372f96a9d4187cac276eb059.tar.gz searxng-bbb5e23551fd62d2372f96a9d4187cac276eb059.zip |
Remove whitespace caused by Jinja commands
Adding this conf change will remove every newline created by a Jinja command (`{% %}`). It can save a bit of bandwidth.
-rw-r--r-- | searx/templates/oscar/base.html | 4 | ||||
-rw-r--r-- | searx/webapp.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html index df5c53965..c185f8774 100644 --- a/searx/templates/oscar/base.html +++ b/searx/templates/oscar/base.html @@ -46,7 +46,7 @@ <body> <div class="container"> {% include 'oscar/navbar.html' %} - + {% block site_alert_error %} {% endblock %} {% block site_alert_warning %} @@ -62,7 +62,7 @@ {% endblock %} {% block site_alert_success %} {% endblock %} - + {% block content %} {% endblock %} diff --git a/searx/webapp.py b/searx/webapp.py index b12a08db5..13c965e0d 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -81,6 +81,8 @@ app = Flask( template_folder=templates_path ) +app.jinja_env.trim_blocks = True +app.jinja_env.lstrip_blocks = True app.secret_key = settings['server']['secret_key'] babel = Babel(app) |