• Stars
    star
    221
  • Rank 173,788 (Top 4 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created over 14 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

LESS Engine - A Java wrapper for less.js

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