Configuration for GrooCSS conversions. There are at least four different ways to configure GrooCSS:
Type | Name and description |
---|---|
boolean |
addMoz |
boolean |
addMs |
boolean |
addOpera |
boolean |
addWebkit |
String |
charset |
boolean |
compress |
boolean |
convertUnderline Whether or not convert under-scores in CSS classes into dashes (main_content becomes main-content). |
boolean |
prettyPrint |
Set<Processor> |
processors Custom processors/validators to use. |
Set |
styleClasses Element-names that you only want to use as CSS classes. |
Type Params | Return Type | Name and description |
---|---|---|
|
Config |
compress() Sets the compress flag to true. |
|
Config |
convertUnderline() Set the convertUnderline flag to true. |
|
Config |
noExts() Sets all extension adding flags to false. |
|
Config |
onlyMoz() Sets all extension adding flags to false except moz. |
|
Config |
onlyMs() Sets all extension adding flags to false except ms. |
|
Config |
onlyOpera() Sets all extension adding flags to false except opera. |
|
Config |
onlyWebkit() Sets all extension adding flags to false except webkit. |
|
Config |
prettyPrint() Sets the prettyPrint flag to true. |
|
Config |
useAsClass(String name) Add one Element-name, like 'link', that you only want to use as CSS class. |
|
Config |
useAsClasses(Collection classes) Add Element-names, like 'link', that you only want to use as CSS classes. |
|
Config |
utf8() Sets the charset to UTF-8. |
|
Config |
withProcessors(Collection<Processor> list) |
Whether or not convert under-scores in CSS classes into dashes (main_content becomes main-content). Default is false.
Custom processors/validators to use.
Element-names that you only want to use as CSS classes.
Sets the compress flag to true.
Set the convertUnderline flag to true.
Sets all extension adding flags to false.
Sets all extension adding flags to false except moz.
Sets all extension adding flags to false except ms.
Sets all extension adding flags to false except opera.
Sets all extension adding flags to false except webkit.
Sets the prettyPrint flag to true.
Add one Element-name, like 'link', that you only want to use as CSS class.
Add Element-names, like 'link', that you only want to use as CSS classes.
Sets the charset to UTF-8.
Groovy Documentation