hamlbars 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/hamlbars/ext/compiler.rb +2 -1
- data/lib/hamlbars/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bff4cbdd93ce88dfd441456b7ba5fb27e38f98cf
|
4
|
+
data.tar.gz: 89b619768a8ab1668c2ab1d36d8962ced23c121f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31789e8579fe0b0529f5b34f5fa2207b8cea5f69c0dd9dc4d1774429d95682c2594d108b3aa9b000c3fb9cdeb8f6ec04215fbd5428270817cee974aecbdc2cac
|
7
|
+
data.tar.gz: cdbaeb5a114f6623df73f5f8b51ff9988b8c6fcd88d0baa8ed8abf4437972534b2c655652781cf94561588aa6f6aee2bf88dac3479a4a58ede4da360e1a7366d
|
data/README.md
CHANGED
@@ -180,8 +180,8 @@ To use Ember's `{{action}}` helper, set the `:_action` attribute, like so:
|
|
180
180
|
This will generate:
|
181
181
|
|
182
182
|
```html
|
183
|
-
<a {{action toggle}}>Toggle</a>
|
184
|
-
<a {{action edit article on="doubleClick"}}>Edit</a>
|
183
|
+
<a {{action "toggle"}}>Toggle</a>
|
184
|
+
<a {{action "edit" article on="doubleClick"}}>Edit</a>
|
185
185
|
```
|
186
186
|
|
187
187
|
Note that `:_action` has a leading underscore, to distinguish it from regular
|
@@ -45,7 +45,8 @@ module Hamlbars
|
|
45
45
|
# This could be generalized into /_.*/ catch-all syntax, if
|
46
46
|
# necessary. https://github.com/jamesotron/hamlbars/pull/33
|
47
47
|
if action = attributes.delete('_action')
|
48
|
-
|
48
|
+
actionName, rest = action.split(/\s/, 2)
|
49
|
+
handlebars_rendered_attributes << " {{action \"#{actionName}\" #{rest}}}"
|
49
50
|
end
|
50
51
|
|
51
52
|
handlebars_rendered_attributes
|
data/lib/hamlbars/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hamlbars
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Harton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '2.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: tilt
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|