@SupportedResourceType(value=CSS) public class NodeLessCssProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor, SupportAware
RhinoLessCssProcessor but uses lessc shell utility to process the less.
Installation instructions: Install the libnode-less package (Unix OS)
sudo apt-get install node-lessIt is possible to test whether the lessc utility is available using
isSupported()
| Constructor and Description |
|---|
NodeLessCssProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
getCommandLine(String filePath)
Creates the platform specific arguments to run the
lessc shell utility. |
boolean |
isSupported() |
protected void |
onException(Exception e,
String content)
Invoked when a processing exception occurs.
|
void |
process(Reader reader,
Writer writer) |
void |
process(Resource resource,
Reader reader,
Writer writer) |
public static final String ALIAS
public void process(Resource resource, Reader reader, Writer writer) throws IOException
process in interface ResourcePreProcessorIOExceptionprotected void onException(Exception e, String content)
WroRuntimeException.e - the Exception thrown during processingcontent - the resource content being processed.public void process(Reader reader, Writer writer) throws IOException
process in interface ResourcePostProcessorIOExceptionpublic boolean isSupported()
isSupported in interface SupportAwareCopyright © 2008-2013. All Rights Reserved.