Package io.bit3.jsass

Class Compiler


  • public class Compiler
    extends java.lang.Object
    The compiler compiles SCSS files, strings and contexts.
    • Constructor Detail

      • Compiler

        public Compiler()
        Create new compiler.
    • Method Detail

      • compileString

        public Output compileString​(java.lang.String string,
                                    Options options)
                             throws CompilationException
        Compile string.
        Parameters:
        string - The input string.
        options - The compile options.
        Returns:
        The compilation output.
        Throws:
        CompilationException - If the compilation failed.
      • compileString

        public Output compileString​(java.lang.String string,
                                    java.net.URI inputPath,
                                    java.net.URI outputPath,
                                    Options options)
                             throws CompilationException
        Compile string.
        Parameters:
        string - The input string.
        inputPath - The input path.
        outputPath - The output path.
        options - The compile options.
        Returns:
        The compilation output.
        Throws:
        CompilationException - If the compilation failed.
      • compileFile

        public Output compileFile​(java.net.URI inputPath,
                                  java.net.URI outputPath,
                                  Options options)
                           throws CompilationException
        Compile file.
        Parameters:
        inputPath - The input path.
        outputPath - The output path.
        options - The compile options.
        Returns:
        The compilation output.
        Throws:
        CompilationException - If the compilation failed.
      • sass2scss

        public static java.lang.String sass2scss​(java.lang.String source,
                                                 int options)
      • getLibsassVersion

        public static java.lang.String getLibsassVersion()