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

Indentation issues #2

Open
eric-hu opened this issue Nov 17, 2011 · 2 comments
Open

Indentation issues #2

eric-hu opened this issue Nov 17, 2011 · 2 comments

Comments

@eric-hu
Copy link

eric-hu commented Nov 17, 2011

Thanks for writing this plugin! It's been a huge help for me in working with Backbone.js

I've been having some indentation issues with .jst.ejs.haml files--I'm not sure if this is stepping outside the scope of your intended use for vim-jst. I can provide an example, though

.submit_wr
  %input{:type => "submit", :value => "Create Membership"}

Hitting enter after the cursor is at the right curly brace, this becomes

.submit_wr
%input{:type => "submit", :value => "Create Membership"}
%

Similarly, adding a left curly brace will unindent text as well:

.submit_wr
%input{:type => "submit", :value => "Create Membership"}{
@briancollins
Copy link
Owner

Are you generating Haml with a jst template?

@eric-hu
Copy link
Author

eric-hu commented Nov 17, 2011

With the jst.ejs.haml format, I'm generating a jst template file from haml on the server, then sending it down to the client. The client interprets the jst template file and builds out HTML elements from it. It's a bit convoluted, but has been the fastest way I've found to build out views using Backbone.js

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