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

Enforce single quotes #60

Open
adamchainz opened this issue Sep 25, 2024 · 2 comments
Open

Enforce single quotes #60

adamchainz opened this issue Sep 25, 2024 · 2 comments

Comments

@adamchainz
Copy link
Owner

Description

Typically HTML uses double quotes for attributes. I’ve often seen and adopted a style of using single quotes in template tags to pair nicely with any outer double quotes, and avoid breaking any syntax highlighting. Should Djade enforce this?

@knyghty
Copy link

knyghty commented Sep 29, 2024

Personally... I actually prefer double quotes, and with the right extension, the syntax highlighting in my editor works perfectly.

But I also don't care that much, just nowadays I hardly ever use single quotes, so I'm not used to seeing them anymore.

@adamchainz adamchainz changed the title Enforce single quotes? Enforce single quotes Oct 3, 2024
@EmilStenstrom
Copy link

Maybe a start could be to enforce single quote when inside a double quoted block? I'm a little worried that enabling this globally would just be a massive change to everyone's template files with very little gain.

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

No branches or pull requests

3 participants