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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 185258fc6ea56da609487b2888247abdd6cde2cb
4
- data.tar.gz: 23dffe0b7043f1ebd7fe4683100cd50a119e30dd
3
+ metadata.gz: c6ec214230e86d1f89f24fdf4e92681c0f8c2b2b
4
+ data.tar.gz: 8b180b80bb78f0a08eb3712bab31f0f44494f988
5
5
  SHA512:
6
- metadata.gz: ebc8f6211e9c33a16d806060ed02cb03d03ea68403087d8db43701abaef761583db7404150bbe4d0251ae8c9a8a2684268672fb1c20ef5d33981502215ab50e7
7
- data.tar.gz: b75286914679c427040fe57f20b51db83ab76c998764ebfd9641af6e5f04897ca18bd39d6066932e71c46620aaa0d2452c67bdf0046225ec2519f7d2f2fed694
6
+ metadata.gz: 0f5a6d4eec4b1f8a2e7a59d569266f27e5d7feca74a938c6986abcc4d3ad93a60b2f692181472c1e96ef362cde12f01232c7cc4a8acb03c57986ce12147d9d3e
7
+ data.tar.gz: 575fc936deeef3fc5b85693f36b434a726b628f0b8102d7c9d685956ba555a37f36cb499f447f93d566910948affd368337e7e52bd50b28f1727c89371883c02
@@ -1,3 +1,7 @@
1
+ # 0.7.1
2
+
3
+ * Use a custom output variable when rendering Tilt templates
4
+
1
5
  # 0.7.0
2
6
 
3
7
  * `Hobbit::Filter`: call all matching filters instead of calling the first
@@ -1,5 +1,5 @@
1
1
  module Hobbit
2
2
  module Contrib
3
- VERSION = '0.7.0'
3
+ VERSION = '0.7.1'
4
4
  end
5
5
  end
@@ -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.0
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-07-10 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler