Class RhinoLessCssProcessor

java.lang.Object
ro.isdc.wro.extensions.processor.css.RhinoLessCssProcessor
All Implemented Interfaces:
Destroyable, ResourcePostProcessor, ResourcePreProcessor

@SupportedResourceType(CSS) public class RhinoLessCssProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor, Destroyable
A processor using lessCss engine: @see http://www.asual.com/lesscss/

The main css goodies are:

  • Variables - Variables allow you to specify widely used values in a single place, and then re-use them throughout the style sheet, making global changes as easy as changing one line of code.
  • Mixins - Mixins allow you to embed all the properties of a class into another class by simply including the class name as one of its properties. It's just like variables, but for whole classes. Mixins can also behave like functions, and take arguments.
  • Nested Rules - Rather than constructing long selector names to specify inheritance, in Less you can simply nest selectors inside other selectors. This makes inheritance clear and style sheets shorter.
  • Operations - Are some elements in your style sheet proportional to other elements? Operations let you add, subtract, divide and multiply property values and colors, giving you the power to do create complex relationships between properties.
If processing encounter any issues during processing, no change will be applied to the resource.
Since:
1.2.6
Author:
Alex Objelean