dotjs_sprockets 0.1.0 → 0.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 +5 -5
- data/lib/dotjs_sprockets/constants.rb +1 -1
- data/lib/dotjs_sprockets/engine.rb +2 -2
- 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: 0696ce27e474fd533278069c7397b8f2de427fb8
|
|
4
|
+
data.tar.gz: 35d496f9eb3091aaaa3f768812c6e8b92def2ee1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 550e54e30da339f518ced3ce70ce170f0b3a5a7215bb259de772a972ea8242c06db59f2a706b4424f525b2a1311b4d3b931c0bf0eeb7de7a52ee7e201999b9c2
|
|
7
|
+
data.tar.gz: a19fab5704193242ff782b511b30ec6c594a9f8ef095029556341076694160332c4bccfa494fa697a2852c233f3a97d9a2c47c751ac019633122e8cd364fad90
|
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# DotjsSprockets
|
|
2
2
|
|
|
3
|
+
[](http://badge.fury.io/rb/dotjs_sprockets)
|
|
3
4
|
[](https://codeclimate.com/github/roperzh/dotjs_sprockets)
|
|
4
5
|
[](http://inch-ci.org/github/roperzh/dotjs_sprockets)
|
|
5
6
|
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
Add this line to your application's Gemfile:
|
|
11
12
|
|
|
12
13
|
```ruby
|
|
13
|
-
gem "
|
|
14
|
+
gem "dotjs_sprockets"
|
|
14
15
|
```
|
|
15
16
|
|
|
16
17
|
And then execute:
|
|
@@ -54,8 +55,7 @@ JST["my_template"]() //=> <h2>Hello!</h2> ...
|
|
|
54
55
|
|
|
55
56
|
## Contributing
|
|
56
57
|
|
|
57
|
-
1. Fork it
|
|
58
|
+
1. Fork it
|
|
58
59
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
59
|
-
3.
|
|
60
|
-
4.
|
|
61
|
-
5. Create a new Pull Request
|
|
60
|
+
3. Push to the branch (`git push origin my-new-feature`)
|
|
61
|
+
4. Create a new Pull Request
|
|
@@ -21,8 +21,8 @@ module DotjsSprockets
|
|
|
21
21
|
#
|
|
22
22
|
# @since 0.1.0
|
|
23
23
|
def precompile(full_path)
|
|
24
|
-
template = open(full_path).read
|
|
25
|
-
context.eval("doT.compile(
|
|
24
|
+
template = open(full_path).read
|
|
25
|
+
context.eval("doT.compile(#{template.inspect}).toString()")
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
private
|