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
<ulid="users">{% for user in users %}{% endfor %}<liclass="user">{# comment #}{{ user.name | e }}Email: {{ user.email | e }}<ahref="{{ user.url | e }}">Home page</a><span>aky</span></li></ul>
Can you help me to keep format syntax for twig output file ?
Thanks a lot
Neo
The text was updated successfully, but these errors were encountered:
There is no "keeping format". There is no match, as Pug indent represent inheritence depth, while HTML/Twig indent can be either irrelevant or representing actual whitespace.
With those settings each inner bloc is indented with 4 spaces.
The thing is that for HTML content, the {%...%} is just text like any other with no particular meaning, so it won't be indented. If you want it to be indented, you'll need to use a Twig formatter instead which could provide a more complete support.
Hello,
I've been making a cli script for convert Pug to Twig template.
This is my code
But I cannot keep format for output file.
Can you help me to keep format syntax for twig output file ?
Thanks a lot
Neo
The text was updated successfully, but these errors were encountered: