Package io.bit3.jsass.adapter
Class NativeAdapter
- java.lang.Object
-
- io.bit3.jsass.adapter.NativeAdapter
-
public class NativeAdapter extends java.lang.Object
Adapter to native functions.
-
-
Constructor Summary
Constructors Constructor Description NativeAdapter(FunctionWrapperFactory functionWrapperFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Output
compile(FileContext context, ImportStack importStack)
Compile a file context.Output
compile(StringContext context, ImportStack importStack)
Compile a string context.static java.lang.String
libsassVersion()
Native call.static java.lang.String
sass2scss(java.lang.String source, int options)
Native call.
-
-
-
Constructor Detail
-
NativeAdapter
public NativeAdapter(FunctionWrapperFactory functionWrapperFactory)
-
-
Method Detail
-
compile
public Output compile(FileContext context, ImportStack importStack) throws CompilationException
Compile a file context.- Returns:
- The compiled result.
- Throws:
CompilationException
-
compile
public Output compile(StringContext context, ImportStack importStack) throws CompilationException
Compile a string context.- Returns:
- The compiled result.
- Throws:
CompilationException
-
sass2scss
public static java.lang.String sass2scss(java.lang.String source, int options)
Native call.
-
libsassVersion
public static java.lang.String libsassVersion()
Native call.
-
-