@SupportedResourceType(value=CSS) public class RhinoLessCssProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor, Destroyable
The main css goodies are:
| Constructor and Description |
|---|
RhinoLessCssProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected LessCss |
newLessCss() |
protected void |
onException(WroRuntimeException 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(WroRuntimeException e)
protected LessCss newLessCss()
LessCss engine implementation. Override it to provide a different version of the less.js
library. Useful for upgrading the processor outside the wro4j release.public void process(Reader reader, Writer writer) throws IOException
process in interface ResourcePostProcessorIOExceptionpublic void destroy()
throws Exception
destroy in interface DestroyableExceptionCopyright © 2008-2016. All Rights Reserved.