Is there a way to compile CoffeeScript to JavaScript code using JavaScript?
User writes CoffeeScript code to a textarea (or a codemirror editor..), and I want to compile the coffee code to js and execute it.
I know how to compile coffee to js with php, or other server side languages but I want to do it on client side.
Go to the CoffeeScript site and read the “text/coffeescript Script Tags” paragraph.
Don’t forget the
bareoption, or else the compiled code will be wrapped