slim-grunt-helpers 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/lib/slim-grunt-helpers/models/usemin.rb +1 -0
- data/lib/slim-grunt-helpers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 315d6025a167f6f995b9c2d74ebb9c7bb99c82fd
|
4
|
+
data.tar.gz: 14a2f8191e24d58ba91e37318c3d602446a1999d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 100f857e035308ebd030d55031920926828a8e4c0ee9da85ba7c52bf356d63ecc6fc11452af8832b1aa41a808a8095df9354051f95e5fc4e1b9399c1b3f5c68e
|
7
|
+
data.tar.gz: 0f6fc5657d2d6d386cc08f833f61f45115546024cede06dc31749b8614306bca6477f01ad4396534896ea1144b39c908cac17ce0351cd3a7dc1a64438241d1dc
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ how you require the gem) which will help you when setting up a pipeline with
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'slim-grunt-helpers', '~> 0.0.
|
12
|
+
gem 'slim-grunt-helpers', '~> 0.0.2'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -49,9 +49,17 @@ there which are boring to type directly in Slim. The usage is simple:
|
|
49
49
|
```ruby
|
50
50
|
== sg_usemin_css('application.css', alt: '.tmp') do |usemin|
|
51
51
|
- usemin << 'styles/bootstrap.css'
|
52
|
-
- usemin
|
52
|
+
- usemin.add 'styles/main.css', 'data-customattr' => 'customdata'
|
53
53
|
```
|
54
54
|
|
55
|
+
**Note:** You can either use **<<** or `add`, I prefer the first one but if you want use two params,
|
56
|
+
the only way to do it is in this way:
|
57
|
+
```ruby
|
58
|
+
- usemin.<<('param1', 'data-customattr' => 'customdata')
|
59
|
+
```
|
60
|
+
Which I consider quite horrible, so the method is aliased with `add`
|
61
|
+
|
62
|
+
**Anyway!**
|
55
63
|
The first argument is required, and it's the `path` :
|
56
64
|
|
57
65
|
```html
|