How can I compile CoffeeScript from .NET?

后端 未结 18 1944
后悔当初
后悔当初 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:36

    You could simply write a port of it to C#. I have ported Jison to C# (which is the underlying project that makes CoffeeScript run). I would think it may be a bit different, but both Jison parsers work the same.

    I have not pull requested it back yet to Jison's main architecture, but will be doing so soon.

    https://github.com/robertleeplummerjr

提交回复
热议问题