Skip to content
LESS Engine - A Java wrapper for less.js
JavaScript Java Other
Find file
Latest commit e46be73 May 15, 2015 @asual Merge pull request #64 from killerboot/master
Enabling Rhino Script Debugger breaks the compiler.
Failed to load latest commit information.
src Enabling Rhino Script Debugger breaks the compiler. May 15, 2015
.travis.yml Add JDK8 Mar 22, 2014
LICENSE Initial commit. Oct 6, 2009
README.md Add travis badge Mar 22, 2014
assembly.xml Formatting. Aug 27, 2013
pom.xml Refactoring Aug 10, 2014

README.md

LESS Engine

LESS Engine provides basic access to the core LESS functionality. It's a core library that can be used for a variety of JVM based LESS applications.

Usage

The following sample demonstrates how the API can be used to parse strings and compile URL resources:

// Instantiates a new LessEngine
LessEngine engine = new LessEngine();

// Compiles a CSS string
String text = engine.compile("div { width: 1 + 1 }");

// Compiles an URL resource
String url = engine.compile(getClass().getClassLoader().getResource("META-INF/test.css"));

// Creates a new file containing the compiled content
engine.compile(new File("/Users/User/Projects/styles.less"), 
               new File("/Users/User/Projects/styles.css"));

Build status

Build Status

Something went wrong with that request. Please try again.