New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

com.github.jryans.jless:jless

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.jryans.jless:jless

A Java implementation of the LESS CSS framework

0.4.11
Source
Maven
Version published
Maintainers
1
Source

JLESS

JLESS is a pure Java port of Alexis Sellier's LESS abstraction for CSS, which was written in Ruby. By using only Java to produce the CSS output, this library offers much faster LESS processing for your Java web application when compared with other approaches that wrap interpreters around the original Ruby or JavaScript source.

Quick Start

JLESS can be used either as a command line tool during your build process, or it can be used at runtime to translate LESS content on demand.

git clone git://github.com/jryans/jless.git
cd jless
mvn package

Standalone Tool

# Use -c if you'd like to minify the output
java -jar target/jless-<version>-jar-with-dependencies.jar [-c] <input less file>

Runtime Library

LessProcessor processor = new LessProcessor();
processor.setCompressionEnabled(true); // Minification is off by default
String css = processor.process(<input stream>).toString();

Features

At this time, not all of the features of the LESS language have been ported over:

  • Supported
    • Variables
    • Mixins
    • Mixin Arguments
    • Nesting
  • Unsupported
    • Math Operations
    • Accessors
    • Imports

Support

Please file issues for any problems you encounter.

Credits

  • LESS: The original LESS abstraction in Ruby
  • less.js: A newer implementation in JavaScript
  • lesscss-engine: Wraps less.js with a JavaScript interpreter for use in Java applications

FAQs

Package last updated on 22 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts