summary refs log tree commit diff stats
path: root/ganarchy/templating
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2020-07-26 19:11:44 -0300
committerSoniEx2 <endermoneymod@gmail.com>2020-07-26 19:11:44 -0300
commitc80a738c806697369d77b522b1f2524eec9e2c11 (patch)
tree22db98bea4231d6958074a9e98501ff00cc74356 /ganarchy/templating
parentbdf5cb78b9d7daf702e0e05660580ab311473fdc (diff)
Add the run-once target
I need to look into async/await before trying to make a proper run
target, but this should help until then.
Diffstat (limited to 'ganarchy/templating')
-rw-r--r--ganarchy/templating/environment.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ganarchy/templating/environment.py b/ganarchy/templating/environment.py
index a527053..0258f4d 100644
--- a/ganarchy/templating/environment.py
+++ b/ganarchy/templating/environment.py
@@ -22,7 +22,9 @@ import ganarchy.templating.toml
 def get_env():
     env = jinja2.Environment(
         loader=ganarchy.templating.templates.get_template_loader(),
-        autoescape=False
+        autoescape=False,
+        # aka please_stop_mangling_my_templates=True
+        keep_trailing_newline=True
     )
     env.filters['tomlescape'] = ganarchy.templating.toml.tomlescape
     env.filters['tomle'] = env.filters['tomlescape']