Line Statements or Statements Tags #298
AhnafCodes
started this conversation in
Ideas
Replies: 1 comment
-
|
related |
Beta Was this translation helpful? Give feedback.
0 replies
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 django-cotton Statement tags can be achieved by the users by writing components like c-if, c-for, c-with
usage:
i.e.
<c-if > </c-if>vs
{%if%} {%endif%}Every if or for block is 3 less characters and look lot readable and closer to html, It would nice if to have it as a built-in feature django-cotton, even by config would be great
Beta Was this translation helpful? Give feedback.
All reactions