3 ms·
Just reading your comment, it occurred to me that this is an editor problem. What we actually need are editors in which you can set you language (haml, slim, l
by Sapient 15y ago
Just reading your comment, it occurred to me that this is an editor problem.
What we actually need are editors in which you can set you language (haml, slim, less etc), and then those are compiled and saved, in realtime to html, erb, css etc.
Not having used too much Coffee Script yet, I don't know what the transformation from CS -> JS -> CS would result in, but I believe HAML -> HTML -> HAML would be pretty much 1:1, and html2haml already produces pretty much exactly the same haml I would have produced if I had done the conversion manually.
- iloveponies 15y agoI can see such a conversion like that leading to a scenario where someone writes some broken markup and the conversion to and from formats only makes the situation worse.
- Cushman 15y agoOne of the goals of CoffeeScript is to produce only well-formed, compliant JS. JS to CS conversion would go against that.