I want to write a HttpHandler that compiles CoffeeScript on-the-fly and sends the resulting javascript. I have tried Ms Jscript and IronJS without success. I don't want to use Rhino because the java dependency would make it too difficult to distribute.
Has anyone compiled CoffeeScript from .NET or have any idea how it could be done?
UPDATE:
when using the MS Jscript interpreter an error is thrown in:
Lexer.prototype.extension_token = function () {
var _d, _e, _f, extension;
_e = Lexer.extensions;
for (_d = 0, _f = _e.length; _d < _f; _d++) {
extension = _e[_d];
if (extension.call(this)) {
return true
}
}
return false
};
The error is: Error: Object doesn't support this property or method and occurs on the line:
_e = Lexer.extensions;