Skip to content

added slm template syntax #66

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

Merged
merged 1 commit into from
Aug 26, 2016
Merged

added slm template syntax #66

merged 1 commit into from
Aug 26, 2016

Conversation

xgvargas
Copy link
Contributor

@xgvargas xgvargas commented Aug 26, 2016

Added highlight for slm template syntax.

It is very similar to Jade/Pug with the small (perhaps very small), advantage of allowing the usage of the v-bind: shortcut which is an error in Jade.

Also you need to install slm-loader and use webpack with :

    vue: {
        loaders: {
           //....
            slm: "vue-html-loader!slm",
        },
    },

@yyx990803 yyx990803 merged commit 909afa5 into vuejs:master Aug 26, 2016
@xgvargas
Copy link
Contributor Author

Oops! I have to say I've made a mistake.

Is true that slim accepts the v-bind shortcut which is great. But in other hand it does not accepts modifiers like :value.sync which are far more important then the shortcut, so we are better using jade/pug with v-bind:value.sync as always.

@meyagen
Copy link

meyagen commented Nov 5, 2016

That's too bad, I was looking forward to using slm while learning Vue since I discovered them both recently. By the way, I tried using slm (will probably switch to Jade now) but the syntax highlight doesn't work for me. Is there an actual syntax highlighter for slm? From what I found the official github endorses the Ruby Slim syntax highlighter since they're similar anyway, but ST doesn't seem to recognize it for Vue templates.

I'm new to Vue so I haven't tried it with Jade yet, but it looks like a fix has already been merged for the v-bind shortcut. I guess slm's edge is only with it being slightly faster, but it loses out if it still can't accept modifiers.

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

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy