-
Notifications
You must be signed in to change notification settings - Fork 145
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
Make it JST compliant #4
Comments
I do nothing fancy with the path, I just use scope.logical_path and pass it to the haml-coffee compiler. So it's up to the user how he configures the asset pipeline to get the name he needs. JST template generation was already built into haml-coffee and I didn't want to change it. |
There are two solutions for this:
I don't want to spend more time to make something that works fine for me now to make it work a little different just to be "JST compliant". If you bother with the missing |
The Express support in Haml Coffee 0.5 enables Haml Coffee Assets 0.5 to easily support the Sprockets JST processor. |
Currently it generates the full JST template trying to shorten the names.
I did similar thing in my pakunok gem for hamljs. Did it even smarter when ot was producing the plain function names for subdirectories.
But after some discussions and considerations decided to stick to rails conventions
This resulted in a separate gem (ruby-haml-js).
It might look like a good idea to automatically attach the template to JST.
But this is not how it is supposed to be.
The text was updated successfully, but these errors were encountered: