@SupportedResourceType(value=JS) public class NodeCoffeeScriptProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor, SupportAware
npm install -g coffee-scriptIt is possible to test whether the lessc utility is available using
isSupported()
| Constructor and Description |
|---|
NodeCoffeeScriptProcessor() |
| 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.