using[java] io.bit3.jsass::CompilationExceptionusing[java] io.bit3.jsass::Compilerusing[java] java.io::File as JFileusing[java] fanx.interop::Interop** The wrapper around JSass that wraps LibSass.class SassCompiler {** Compiles the given Sass / Scss file to a CSS string.** ** To compile a file:** ** syntax: fantom** css := SassCompiler().compileFile(`myScss.scss`).css** SassResult compileFile(File inputFile, File? outputFile := null, SassOptions? options := null){if(inputFile.exists.not)throw ArgErr("${inputFile.normalize.osPath} does not exist")if(inputFile.isDir)throw ArgErr("${inputFile.normalize.osPath} is not a file")try{ opts := options ?: SassOptions() inFile := JFile( inputFile.normalize.osPath).toURI outFile := JFile(outputFile.normalize.osPath).toURI // not really sure what this does - it's not created! output := Compiler().compileFile(inFile, outFile, opts.getOpts)return SassResult {it.css = output.getCssit.sourceMap = output.getSourceMapit.options = optsit.inputFile = inputFile}}catch(Err err){ exp := Interop.toJava(err)if(exp is CompilationException)throw SassCompilationErr(exp)throw err}}}