io.bit3.jsass.package-info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of io.bit3.jsass Show documentation
Show all versions of io.bit3.jsass Show documentation
SASS compiler using libsass.
The newest version!
/**
* jsass is a feature complete java sass compiler,
* using libsass.
*
* You should start with the {@link io.bit3.jsass.Compiler} class,
* here is a short quick start example.
*
* String input = "body { color: red; }";
* URI inputFile = new File("stylesheet.scss").toURI();
* URI outputFile = new File("stylesheet.css").toURI();
*
* Compiler compiler = new Compiler();
* Options options = new Options();
*
* try {
* Output output = compiler.compileString(input, inputFile, outputFile, options);
*
* out.println("Compiled successfully");
* out.println(output.getCss());
* } catch (CompilationException e) {
* err.println("Compile failed");
* err.println(e.getErrorText());
* }
*
* You will find more examples
* in the documentation.
*/
package io.bit3.jsass;
© 2015 - 2024 Weber Informatics LLC | Privacy Policy