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

Slim expanded class syntax #678

Open
aa365 opened this issue Jan 30, 2022 · 2 comments
Open

Slim expanded class syntax #678

aa365 opened this issue Jan 30, 2022 · 2 comments

Comments

@aa365
Copy link

aa365 commented Jan 30, 2022

Is it possible to have emmet use the expanded class syntax in slim templates?
At present, emmet 'expands' to slim using the short syntax

emmet: .foo.bar
slim: .foo.bar

However, slim supports an expanded syntax using class attributes:
emmet: .foo.bar
slim: div class="foo bar"

Is this possible?

@sergeche
Copy link
Member

You can write [class="foo bar"] to get desired output. But I'm not sure if you should use Emmet for Slim at all

@aa365
Copy link
Author

aa365 commented Jan 30, 2022

Hi @sergeche , emmet would be great for slim if it could expand the class attribute as described. I don't use the shorter slim syntax anymore because I use tailwind for the styling and it's JIT compiler can't detect classes in the shorter syntax.

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

2 participants