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

java.lang.Object
  extended by ro.isdc.wro.extensions.processor.css.SassCssProcessor
All Implemented Interfaces:
ResourcePostProcessor, ResourcePreProcessor

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

A processor using sass engine:

Author:
Alex Objelean

Field Summary
static String ALIAS
           
static String ALIAS_RUBY
           
 
Constructor Summary
SassCssProcessor()
          default constructor that sets the engine used to RHINO for backwards compatibility.
 
Method Summary
protected  SassCss newEngine()
          Method for processing with Rhino based engine
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

ALIAS_RUBY

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

SassCssProcessor

public SassCssProcessor()
default constructor that sets the engine used to RHINO for backwards compatibility.

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 the exception is thrown further.


newEngine

protected SassCss newEngine()
Method for processing with Rhino based engine

Parameters:
content -
Returns:

process

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

Specified by:
process in interface ResourcePostProcessor
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.