You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is very useful to be able to control/override indentation in for loops and if blocks, without having to dedent the template code, making it less readable. This is especially important for languages that indentation is actually semantically meaningful, like markdown or python.
I understand Tera doesn't support jinja2 environment variables, but I wonder if it is possible to support options like lstrip_blocks using another Tera-blessed way/using existing syntax?
The text was updated successfully, but these errors were encountered:
OmarTawfik
changed the title
jinja2 lstrip_blocks
jinja2 lstrip_blocks behavior
Jan 14, 2024
Code Example: https://ansiblemaster.wordpress.com/2016/07/29/jinja2-lstrip_blocks-to-manage-indentation/
It is very useful to be able to control/override indentation in
for
loops andif
blocks, without having to dedent the template code, making it less readable. This is especially important for languages that indentation is actually semantically meaningful, like markdown or python.I understand Tera doesn't support jinja2 environment variables, but I wonder if it is possible to support options like
lstrip_blocks
using another Tera-blessed way/using existing syntax?The text was updated successfully, but these errors were encountered: