ro.isdc.wro.extensions.processor.support.less
Class LessCss

java.lang.Object
  extended by ro.isdc.wro.extensions.processor.support.less.LessCss

public class LessCss
extends Object

This class is not thread-safe.
The underlying implementation use patched less.js from version 1.3.3 project: ://github.com/cloudhead/less.js.

Since:
1.3.0
Author:
Alex Objelean

Field Summary
static String DEFAULT_LESS_JS
          The name of the sass script to be used by default.
 
Constructor Summary
LessCss()
           
 
Method Summary
protected  InputStream getRunScriptAsStream()
           
protected  InputStream getScriptAsStream()
           
 String less(String data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LESS_JS

public static final String DEFAULT_LESS_JS
The name of the sass script to be used by default.

See Also:
Constant Field Values
Constructor Detail

LessCss

public LessCss()
Method Detail

getRunScriptAsStream

protected InputStream getRunScriptAsStream()
Returns:
the stream of the script responsible for invoking the less transformation javascript code.

getScriptAsStream

protected InputStream getScriptAsStream()
Returns:
stream of the less.js script.

less

public String less(String data)
Parameters:
data - css content to process.
Returns:
processed css content.


Copyright © 2008-2013. All Rights Reserved.