LESS Engine

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

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.google.code.maven-play-plugin.com.asual.lesscss
ArtifactId

ArtifactId

lesscss-engine
Last Version

Last Version

1.3.0-20120408
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.google.code.maven-play-plugin.com.asual.lesscss/lesscss-engine/ -->
<dependency>
    <groupId>com.google.code.maven-play-plugin.com.asual.lesscss</groupId>
    <artifactId>lesscss-engine</artifactId>
    <version>1.3.0-20120408</version>
</dependency>
// https://jarcasting.com/artifacts/com.google.code.maven-play-plugin.com.asual.lesscss/lesscss-engine/
implementation 'com.google.code.maven-play-plugin.com.asual.lesscss:lesscss-engine:1.3.0-20120408'
// https://jarcasting.com/artifacts/com.google.code.maven-play-plugin.com.asual.lesscss/lesscss-engine/
implementation ("com.google.code.maven-play-plugin.com.asual.lesscss:lesscss-engine:1.3.0-20120408")
'com.google.code.maven-play-plugin.com.asual.lesscss:lesscss-engine:jar:1.3.0-20120408'
<dependency org="com.google.code.maven-play-plugin.com.asual.lesscss" name="lesscss-engine" rev="1.3.0-20120408">
  <artifact name="lesscss-engine" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.google.code.maven-play-plugin.com.asual.lesscss', module='lesscss-engine', version='1.3.0-20120408')
)
libraryDependencies += "com.google.code.maven-play-plugin.com.asual.lesscss" % "lesscss-engine" % "1.3.0-20120408"
[com.google.code.maven-play-plugin.com.asual.lesscss/lesscss-engine "1.3.0-20120408"]

Dependencies

compile (2)

Group / Artifact Type Version
org.mozilla : rhino jar 1.7R3
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.3.0-20120408