4 ms·
I've used CoffeeScript extensively with a backbone.js project I was working on. I really liked it (and backbone). But I haven't been able to bring it into my m
by dmix 15y ago
I've used CoffeeScript extensively with a backbone.js project I was working on. I really liked it (and backbone).
But I haven't been able to bring it into my main rails app since I'd like to have all of my JS consistently in coffeescript. I don't like having both JS/CS, just like I don't like having HAML/ERB mixed together.
It would be a big project migrating it over and not as simple as HAMLizing a project.
Maybe one day I'll do it, or wait for a future rails projects.
- DevX101 15y agoThere's a javascript to coffescript converter: https://github.com/rstacruz/js2coffee https://github.com/rstacruz/js2coffee Although I did have a few problems with some more complex code, it seemed to do the trick for more straightforward javascript. You'll lose your comments, but it's worth checking out.