Statements Tags #125
AhnafCodes
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Jinja2, you can configure Jinja to use # for line statements:
# if user.is_authenticated <p>Welcome!</p> # endifWhat you to get is more readable and less cluttered code:
Every if or for block is 6 less characters.
#if #endifvs
{%if%} {%endif%}But, using Jinjax does not support line statements, Statement tags can be achieved by the users by writing components like , ,
i.e.
<IF > </IF>vs
{%if%} {%endif%}Every if or for block is 7 less characters and look lot readable and closer to html, It would nice if to have it as a built-in feature JinjaX, even by config would be great
Beta Was this translation helpful? Give feedback.
All reactions