java.lang.Object
ro.isdc.wro.extensions.processor.support.less.LessCss

public class LessCss extends Object
This class is not thread-safe.
The underlying implementation uses the webjar containing less.js library.
Since:
1.3.0
Author:
Alex Objelean
  • Field Details

    • DEFAULT_LESS_JS

      public static final String DEFAULT_LESS_JS
      The name of the sass script to be used by default.
      See Also:
  • Constructor Details

    • LessCss

      public LessCss()
  • Method Details

    • getScriptAsStream

      protected InputStream getScriptAsStream() throws IOException
      Returns:
      stream of the less.js script.
      Throws:
      IOException
    • less

      public String less(String data)
      Parameters:
      data - css content to process.
      Returns:
      processed css content.