@SupportedResourceType(value=JS) public class RhinoCoffeeScriptProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor
http://jashkenas.github.com/coffee-script/ to compile to javascript code.| Constructor and Description |
|---|
RhinoCoffeeScriptProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected CoffeeScript |
newCoffeeScript() |
protected void |
onException(Exception e)
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)
protected CoffeeScript newCoffeeScript()
CoffeeScript engine implementation. Override it to provide a different version of the coffeeScript.js
library. Useful for upgrading the processor outside the wro4j release.public void process(Reader reader, Writer writer) throws IOException
process in interface ResourcePostProcessorIOExceptionCopyright © 2008-2013. All Rights Reserved.