Exemple #1
0
        public void TestOne()
        {
            var compiler = new V8Compiler(CoffeeScriptHttpHandler.GetCoffeeScript());
            var tt       =
                compiler.Compile(@"F:\dnikku\projects\wp\ms40\src\Web\MatterSpace.Web\mvc\app2\members\app_admin.coffee");

            Assert.AreEqual(tt.Value, "");
        }
Exemple #2
0
        public CScriptEngine(string coffeScript)
        {
            ExePath       = @"c:\Windows\System32\cscript.exe";
            CoffeeScript  = coffeScript;
            InjectVersion = true;

            var exepath = CoffeeScriptHttpHandler.GetConfig("coffee-script.cscriptPath", null);

            if (exepath != null)
            {
                ExePath = exepath;
            }

            InjectVersion = CoffeeScriptHttpHandler.GetConfig("coffee-script.injectVersion", true);
        }