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.
-
3You use CoffeeScript to compile to JavaScript...Griffin– Griffin2011-08-08 00:33:20 +00:00Commented Aug 8, 2011 at 0:33
-
I wish to keep everything all java, which is the origin of my request.mP.– mP.2011-08-08 04:50:19 +00:00Commented Aug 8, 2011 at 4:50
-
2You can run the coffescript translator under Rhino and then run the output of that in Rhino. Does that not qualify as an "all java" solution?Mike Samuel– Mike Samuel2011-08-08 04:54:46 +00:00Commented Aug 8, 2011 at 4:54
Add a comment
|
2 Answers
The wro4j project (which bundles a lot of HTML/JS/CSS processing steps for a Java toolchain, including Maven plugin) also has CoffeeScript support.