string compileInput(string filename, string input)
        {
            var fixture = new SassFileCompiler();

            try {
                string result = fixture.ProcessFileContent(new TestCompilerFile(filename, input));
                Console.WriteLine(result);
                return result;
            } finally {
                File.Delete(filename);
            }
        }
예제 #2
0
        string compileInput(string filename, string input)
        {
            var fixture = new SassFileCompiler();

            using(var of = File.CreateText(filename)) {
                of.WriteLine(input);
            }

            try {

            // TODO: Fix this
               //     fixture.Init(TODO);
                string result = fixture.ProcessFileContent(filename);
                Console.WriteLine(result);
                return result;
            } finally {
                File.Delete(filename);
            }
        }