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.
- Since:
- 1.2.6
- Author:
- Alex Objelean
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
RhinoLessCssProcessor
public RhinoLessCssProcessor()
-
-
Method Details
-
process
- Specified by:
processin interfaceResourcePreProcessor- Throws:
IOException
-
onException
Invoked when a processing exception occurs. -
newLessCss
- Returns:
- the
LessCssengine implementation. Override it to provide a different version of the less.js library. Useful for upgrading the processor outside the wro4j release.
-
process
- Specified by:
processin interfaceResourcePostProcessor- Throws:
IOException
-
destroy
- Specified by:
destroyin interfaceDestroyable- Throws:
Exception
-