问题
I would like to embed javascript into a java application but given coffeescript cleans up some of the superfluous syntax of javascript it would be great to support execution of coffee script in a java environment. I couldnt find any links and am asking here just incase someone knows of a translator or compiler.
回答1:
if I understand you right, JCoffeescript would fit what you're after.
回答2:
The wro4j project (which bundles a lot of HTML/JS/CSS processing steps for a Java toolchain, including Maven plugin) also has CoffeeScript support.
来源:https://stackoverflow.com/questions/6976752/java-library-that-converts-coffeescript-to-javascript-or-compiled-java-executabl