How can I compile CoffeeScript from .NET?

后端 未结 18 1953
后悔当初
后悔当初 2020-12-23 01:54

I want to write an HttpHandler that compiles CoffeeScript code on-the-fly and sends the resulting JavaScript code. I have tried MS [JScript][1] and IronJS without success. I

18条回答
  •  爱一瞬间的悲伤
    2020-12-23 02:25

    I don't have a direct answer, (I hope you find one), but maybe take a look at the following to see how it might be done.

    • Jint - JavaScript interpreter for .NET
    • Using IKVM to compile Rhino would get rid of the Java runtime requirement.
    • jcoffeescript. I haven't looked at jcoffeescript, but I think it depends on JRuby and Rhino. You could possibly IKVM.NET this as well.

提交回复
热议问题