LESS Engine

A Java wrapper for LESS (http://lesscss.org). LESS extends CSS with: variables, mixins, operations and nested rules.

License

License

GroupId

GroupId

com.asual.lesscss
ArtifactId

ArtifactId

lesscss-engine
Last Version

Last Version

1.5.1
Release Date

Release Date

Type

Type

jar
Description

Description

LESS Engine
A Java wrapper for LESS (http://lesscss.org). LESS extends CSS with: variables, mixins, operations and nested rules.
Project URL

Project URL

http://www.asual.com/lesscss
Project Organization

Project Organization

Asual DZZD
Source Code Management

Source Code Management

http://github.com/asual/lesscss-engine

Download lesscss-engine

How to add to project

<!-- https://jarcasting.com/artifacts/com.asual.lesscss/lesscss-engine/ -->
<dependency>
    <groupId>com.asual.lesscss</groupId>
    <artifactId>lesscss-engine</artifactId>
    <version>1.5.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.asual.lesscss/lesscss-engine/
implementation 'com.asual.lesscss:lesscss-engine:1.5.1'
// https://jarcasting.com/artifacts/com.asual.lesscss/lesscss-engine/
implementation ("com.asual.lesscss:lesscss-engine:1.5.1")
'com.asual.lesscss:lesscss-engine:jar:1.5.1'
<dependency org="com.asual.lesscss" name="lesscss-engine" rev="1.5.1">
  <artifact name="lesscss-engine" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.asual.lesscss', module='lesscss-engine', version='1.5.1')
)
libraryDependencies += "com.asual.lesscss" % "lesscss-engine" % "1.5.1"
[com.asual.lesscss/lesscss-engine "1.5.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.mozilla : rhino jar 1.7R4
commons-logging : commons-logging jar 1.1.1

provided (1)

Group / Artifact Type Version
commons-cli : commons-cli jar 1.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.10

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.5.1
1.5.0
1.4.2
1.3.3
1.3.0
1.2.11