-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
How about add vue.js support? #792
Comments
I use vue.js in Slim quite a bit. What are you having trouble with? |
how you do it? Rails App? |
You just use the directive tags like normal but make them slim syntax. .signed-in v-if="user"
= "Wecome, {{ user.name }}"
a.sign-out-button v-on:click="signOut" Sign out |
a good gem? they are also this, how can i well integrate without a complexity? https://github.com/vuetifyjs/vuetify i use Turbolinks, all ok? |
@thom801 How to use <style scoped></style> in slim? css: only generate <style type="text/css"></style> |
For example, you can't do this: Or you get this error: Slim::Parser::SyntaxError Expected attribute Why? The curly braces don't mean anything special in Slim, so why won't it just leave them alone? Why do I have to do a weird trick to show the curly braces? |
Re-read the Slim syntax docs, and I see that there are three (!!!) equivalent ways to delimit HTML attributes, IN ADDITION to not using a delimiter at all. Why do we need to be able to mix-and-match Pick one, tell us what it is, and we'll stick to that. And don't pick |
Sure, you can do this to fix the bug: https://stackoverflow.com/questions/17687389/slim-template-interprets-myjsvar-as-html-attribute-grouping But why isn't this behavior just the default? It doesn't make sense that someone should have to spend extra time searching, reading and configuring, just to get a sensible default that's compatible with client-side code. Again, this is the kind of anti-feature that people bring up when I propose using Slim. |
Related note: pug, which is based on slim can be used within vue components in the webpacker asset pipeline. |
similar issue: #722 |
I don't like pug, is there something more similar to slim? |
It's possible to add vue.js support?
The text was updated successfully, but these errors were encountered: