diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2020-07-26 19:11:44 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2020-07-26 19:11:44 -0300 |
commit | c80a738c806697369d77b522b1f2524eec9e2c11 (patch) | |
tree | 22db98bea4231d6958074a9e98501ff00cc74356 /ganarchy/templating/environment.py | |
parent | bdf5cb78b9d7daf702e0e05660580ab311473fdc (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/environment.py')
-rw-r--r-- | ganarchy/templating/environment.py | 4 |
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'] |