emmet icon indicating copy to clipboard operation
emmet copied to clipboard

Slim expanded class syntax

Open aa365 opened this issue 2 years ago • 2 comments

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?

aa365 avatar Jan 30 '22 11:01 aa365

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

sergeche avatar Jan 30 '22 13:01 sergeche

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.

aa365 avatar Jan 30 '22 14:01 aa365