ro.isdc.wro.extensions.processor.css
Class RubySassCssProcessor

java.lang.Object
  extended by ro.isdc.wro.extensions.processor.css.RubySassCssProcessor
All Implemented Interfaces:
ResourcePostProcessor, ResourcePreProcessor
Direct Known Subclasses:
BourbonCssProcessor

@SupportedResourceType(value=CSS)
public class RubySassCssProcessor
extends Object
implements ResourcePreProcessor, ResourcePostProcessor

A processor using the ruby sass engine:

Since:
1.4.6
Author:
Simon van der Sluis

Field Summary
static String ALIAS
           
 
Constructor Summary
RubySassCssProcessor()
           
 
Method Summary
protected  RubySassEngine getEngine()
          Deprecated. use newEngine() instead.
protected  RubySassEngine newEngine()
           
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)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIAS

public static final String ALIAS
See Also:
Constant Field Values
Constructor Detail

RubySassCssProcessor

public RubySassCssProcessor()
Method Detail

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. By default propagates the runtime exception.


getEngine

@Deprecated
protected RubySassEngine getEngine()
Deprecated. use newEngine() instead.

A getter used for lazy loading.


newEngine

protected RubySassEngine newEngine()
Returns:
a fresh instance of RubySassEngine

process

public void process(Reader reader,
                    Writer writer)
             throws IOException

Specified by:
process in interface ResourcePostProcessor
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.