Class RubySassEngine

java.lang.Object
ro.isdc.wro.extensions.processor.support.sass.RubySassEngine

public class RubySassEngine extends Object
A Sass processor using ruby gems.
Since:
1.4.4
Author:
Dmitry Erman
  • Constructor Details

    • RubySassEngine

      public RubySassEngine()
  • Method Details

    • addRequire

      public void addRequire(String require)
      Adds a ruby require to the ruby script to be run by this RubySassEngine. It's safe to add the same require twice.
      Parameters:
      require - The name of the require, e.g. bourbon
    • process

      public String process(String content)
      Transforms a sass content into css using Sass ruby engine. This method is synchronized because the engine itself is not thread-safe.
      Parameters:
      content - the Sass content to process.