Skip to content

Commit

Permalink
Updated README adding bits about import, raw, and comment; and that G…
Browse files Browse the repository at this point in the history
…radle 4 is needed for new GroocssTask
  • Loading branch information
adamldavis committed Oct 18, 2017
1 parent 083e5a6 commit fa93731
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ It was created by Adam L. Davis (@adamldavis) and inspired by the many other Gro
- Ability to create and reuse groups of styles using styles{} syntax.
- Methods for getting an image's width, height, or size.

## New in 0.7.x-0.11.1
## New in 0.7 - 0.11.1

- Better pseudo-class support with %
- Measurements are now fully supported including math between different compatible types.
Expand All @@ -45,7 +45,8 @@ It was created by Adam L. Davis (@adamldavis) and inspired by the many other Gro
- Added option (convertUnderline) to convert all underlines in style-classes to dashes.
- Added ability to use three or more element selectors without xor.
- Added ability to configure to use some element names as style-classes just in case you need "main" for example to be used as a style-class.
- Gradle GroocssTask now extends Copy task and supports -t option.
- Added imports, raw, and comment (ability to import file/reader/stream with parameters; and ability to include comments for output)
- Gradle GroocssTask now extends Copy task and supports -t option (requires Gradle 4)

## Using Gradle with Plugin

Expand Down Expand Up @@ -80,7 +81,7 @@ There's also a `GroocssTask` available if you want to have finer-grained control
into "$cssDir/min"
}

This also allows the "-t" continuous build option to be used.
This also allows the "-t" continuous build option to be used (requires Gradle 4).

## Using Gradle without Plugin

Expand All @@ -99,6 +100,18 @@ This also allows the "-t" continuous build option to be used.

## Examples

### Imports, Raw, and Comment

The ability to import other groocss files is supported by importFile, importStream, and importString methods which take
a parameter map and input. For example:

importFile otherCss.absoluteFile, linkColor: '#456789'

This would allow you to make a "template file" for example with variables replaced in multiple ways.

There are also "raw" and "comment" commands, for including raw CSS and comments respectively.


### Using convert methods

import org.groocss.GrooCSS
Expand Down

0 comments on commit fa93731

Please sign in to comment.