README.md in slim-grunt-helpers-0.0.1 vs README.md in slim-grunt-helpers-0.0.2
- old
+ new
@@ -7,11 +7,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'slim-grunt-helpers', '~> 0.0.1'
+gem 'slim-grunt-helpers', '~> 0.0.2'
```
And then execute:
$ bundle
@@ -47,12 +47,20 @@
there which are boring to type directly in Slim. The usage is simple:
```ruby
== sg_usemin_css('application.css', alt: '.tmp') do |usemin|
- usemin << 'styles/bootstrap.css'
- - usemin << 'styles/main.css', 'data-customattr' => 'customdata'
+ - usemin.add 'styles/main.css', 'data-customattr' => 'customdata'
```
+**Note:** You can either use **<<** or `add`, I prefer the first one but if you want use two params,
+the only way to do it is in this way:
+```ruby
+- usemin.<<('param1', 'data-customattr' => 'customdata')
+```
+Which I consider quite horrible, so the method is aliased with `add`
+
+**Anyway!**
The first argument is required, and it's the `path` :
```html
<!-- build:<type>(alternate search path) <path> -->
```