Add Slim language support #125

Closed
mrmartineau opened this Issue Nov 11, 2012 · 17 comments

Comments

Projects
None yet
9 participants

Slim is similar to HAML, could it be supported? http://slim-lang.com/

Owner

sergeche commented Nov 12, 2012

I don’t see any advantage on using Emmet to generate a Slim markup. The difference between Slim and Emmet syntax is that you have to use line breaks instead of > and +. A good editor/plugin should automatically format output whenever you hit Enter key.

rozzy commented Jan 29, 2013

Oh no, i disagree with you.
For example, it would be very useful if i could write html:5, hit tab and it will expand into full html5 markup in slim-lang.
Or, you know, input:textinput type="text" and there are many other examples.

It would be very nice if there would be slim-support 👍

Leolik commented Feb 19, 2013

+1
slim-support would be very nice

please don't forget about jade, one more excellent template engine.
#237

I've made a step-by-step tutorial of adding Slim and Jade support
#237 (comment)

I just switched from pure HTML/CSS to Slim/Sass and were saddened to see that I couldn't use Emmet anymore.

Sure, the Slim syntax is quite similar to Emmet, but Emmet has a lot of other functionality beyond just the basic abbreviation expansion.

fiofane commented Sep 28, 2013

++ Would be very, very nice.

Owner

sergeche commented Dec 17, 2013

Available in v1.1 branch

@sergeche sergeche closed this Dec 17, 2013

@sergeche I download your plugin from v1.1 branch, but i can't find any information how to configure plugin for working with slim. Maybe you can write a little manual? Thanks.

Owner

sergeche commented May 5, 2014

@maximhoffman there’s no need to configure plugin, just open Slim file

rozzy commented May 5, 2014

@sergeche it is not fully supported now? Very few emmet functions work with slim now. —
Nikita Nikitin

On Mon, May 5, 2014 at 10:49 AM, Sergey Chikuyonok
notifications@github.com wrote:

@maximhoffman there’s no need to configure plugin, just open Slim file

Reply to this email directly or view it on GitHub:
#125 (comment)

Owner

sergeche commented May 5, 2014

@rozzy what functions you’re expecting to work with Slim?

rozzy commented May 5, 2014

@sergeche for example “!” shortcut and simple nested blocks like “header+.content>.articles>.article*3^.pages^footer”. —
Nikita Nikitin

On Mon, May 5, 2014 at 7:25 PM, Sergey Chikuyonok
notifications@github.com wrote:

@rozzy what functions you’re expecting to work with Slim?

Reply to this email directly or view it on GitHub:
#125 (comment)

Owner

sergeche commented May 5, 2014

@rozzy your expression works fine for me
As for ! snippet, you can create a pull requires with one you’re expecting to see: https://github.com/emmetio/emmet/blob/master/lib/snippets.json

@sergeche it's strange, cuz it doesn't work. I cloned this branch to Emmet package folder, restarted Sublime and opened slim file. Expanding abbreviation by tab or by ctrl+e? I don't know really what i do wrong.

Owner

sergeche commented May 5, 2014

@maximhoffman it’s better to create a new issue with full ST console log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment