hobbit-contrib 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/hobbit/contrib/version.rb +1 -1
- data/lib/hobbit/render.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6ec214230e86d1f89f24fdf4e92681c0f8c2b2b
|
4
|
+
data.tar.gz: 8b180b80bb78f0a08eb3712bab31f0f44494f988
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f5a6d4eec4b1f8a2e7a59d569266f27e5d7feca74a938c6986abcc4d3ad93a60b2f692181472c1e96ef362cde12f01232c7cc4a8acb03c57986ce12147d9d3e
|
7
|
+
data.tar.gz: 575fc936deeef3fc5b85693f36b434a726b628f0b8102d7c9d685956ba555a37f36cb499f447f93d566910948affd368337e7e52bd50b28f1727c89371883c02
|
data/CHANGELOG.md
CHANGED
data/lib/hobbit/render.rb
CHANGED
@@ -26,9 +26,9 @@ module Hobbit
|
|
26
26
|
layout = options.delete :layout
|
27
27
|
end
|
28
28
|
if layout
|
29
|
-
_render(layout) { _render(template) }
|
29
|
+
_render(layout, locals, options) { _render(template, locals, options) }
|
30
30
|
else
|
31
|
-
_render template
|
31
|
+
_render template, locals, options
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -44,7 +44,7 @@ module Hobbit
|
|
44
44
|
|
45
45
|
def _render(template, locals = {}, options = {}, &block)
|
46
46
|
cache.fetch template do
|
47
|
-
Tilt.new template, options
|
47
|
+
Tilt.new template, options.merge(outvar: '@_output')
|
48
48
|
end.render self, locals, &block
|
49
49
|
end
|
50
50
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobbit-contrib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patricio Mac Adden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|