mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
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.
This commit is contained in:
parent
3ff269c84c
commit
bbb5e23551
@ -81,6 +81,8 @@ app = Flask(
|
|||||||
template_folder=templates_path
|
template_folder=templates_path
|
||||||
)
|
)
|
||||||
|
|
||||||
|
app.jinja_env.trim_blocks = True
|
||||||
|
app.jinja_env.lstrip_blocks = True
|
||||||
app.secret_key = settings['server']['secret_key']
|
app.secret_key = settings['server']['secret_key']
|
||||||
|
|
||||||
babel = Babel(app)
|
babel = Babel(app)
|
||||||
|
Loading…
Reference in New Issue
Block a user