ro.isdc.wro.extensions.processor.js
Class CoffeeScriptProcessor
java.lang.Object
ro.isdc.wro.extensions.processor.js.CoffeeScriptProcessor
- All Implemented Interfaces:
- ResourcePostProcessor, ResourcePreProcessor
@SupportedResourceType(value=JS)
public class CoffeeScriptProcessor
- extends Object
- implements ResourcePreProcessor, ResourcePostProcessor
Uses coffee script http://jashkenas.github.com/coffee-script/ to compile to javascript code.
- Since:
- 1.3.6
- Author:
- Alex Objelean
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIAS
public static final String ALIAS
- See Also:
- Constant Field Values
CoffeeScriptProcessor
public CoffeeScriptProcessor()
process
public void process(Resource resource,
Reader reader,
Writer writer)
throws IOException
-
- Specified by:
process in interface ResourcePreProcessor
- Throws:
IOException
onException
protected void onException(WroRuntimeException e)
- Invoked when a processing exception occurs.
newCoffeeScript
protected CoffeeScript newCoffeeScript()
- Returns:
- the
CoffeeScript engine implementation. Override it to provide a different version of the coffeeScript.js
library. Useful for upgrading the processor outside the wro4j release.
process
public void process(Reader reader,
Writer writer)
throws IOException
-
- Specified by:
process in interface ResourcePostProcessor
- Throws:
IOException
Copyright © 2008-2012. All Rights Reserved.