Enforce single quotes
Opened this issue · 2 comments
adamchainz commented
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 commented
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.
EmilStenstrom commented
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.