pakyow-slim 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/pakyow-slim.rb +2 -10
- 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: 5c34b1d9956983cd57d21d21df5beb4c826dbd38
|
4
|
+
data.tar.gz: bd5b2b024242ad243b306e727be04cfdc072c121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b239467189046d4b65483ae486676229a7ffbcaf0f997021ed2b5d9e991777bade13ba3cd65c6a5e0a21923f4c95ac169319241900f0400dbec8100d9ffb4cfc
|
7
|
+
data.tar.gz: f5085f3584a5e9efb1fc3bc0d8fe41a36c489d25192460be8e92cae63d1d49f52da29bd4482f69b8080651cfae6e0a46a22ff0699a530034da033d2e0e1f0a1f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/pakyow-slim.rb
CHANGED
@@ -16,14 +16,6 @@ module SetSlimOptions
|
|
16
16
|
end
|
17
17
|
|
18
18
|
Pakyow::App.processor :slim do |content|
|
19
|
-
|
20
|
-
|
21
|
-
temp.write(content)
|
22
|
-
temp.rewind
|
23
|
-
processed_content = Slim::Template.new(temp.path).render
|
24
|
-
ensure
|
25
|
-
temp.close
|
26
|
-
temp.unlink
|
27
|
-
end
|
28
|
-
processed_content
|
19
|
+
processed_content =
|
20
|
+
Slim::Template.new { @data = content }.render
|
29
21
|
end
|