Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not working sorted in jinja/htmldjango #300

Open
whiskeycola opened this issue Jun 26, 2024 · 1 comment
Open

Do not working sorted in jinja/htmldjango #300

whiskeycola opened this issue Jun 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@whiskeycola
Copy link

Sorting in htmldjango blocks does not work.
In this file, classes are sorted only in the last block where controllflow is not used.

<div
  {% if title.len() > 0 %}
    class="pt-3 p-1"
  {% endif %}
></div>
<div {% if title.len() > 0 %}class="pt-3 p-1"{% endif %}></div>
<div class="p-1 pt-3"></div>
@thecrypticace thecrypticace added the enhancement New feature or request label Aug 12, 2024
@thecrypticace
Copy link
Contributor

Hey! This is because Prettier does not support the Jinja language so we have not added support for it. There looks to be a plugin that adds support for this to Prettier and it may be something we could also support but this will require investigation to determine whether or not that is feasible.

I've made a note internally to look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants