rack-rscript 0.5.3 → 0.5.4

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: 401363d046b8a5c4eada3e105544be9ecbdf2a31
4
- data.tar.gz: af30cfa83751c42be73657aefd73f0ae288001f1
3
+ metadata.gz: 310dc40a6f5027007f2ae6dae43975010bf21930
4
+ data.tar.gz: 8d90134a3d54131239cec4bd2236bc84f86fd007
5
5
  SHA512:
6
- metadata.gz: cecf74657abfb025630531563181a0685cc9950336c9645548f5eaa84dc7b24c842b94f1219b41c2e0b35cc719a79a9dab882936dd086515e81abb4173f122dc
7
- data.tar.gz: b98b728b0eb703f79eb9b96d421df7b186c2026d92e84ba0d1006a7ae13a88fe03bcf5f803b3d6a1e9255ec4934e32f1e362e649e04dd42742cd7dea8a47c705
6
+ metadata.gz: d33fd5e77d9e00b87e87c146e22fdada6778edf80dd4fdb9f50ea497b2d0cb1c89f86211e3664e8e4b5c67bd164de6a6142178b5098ef7a3963ac23fa111b87c
7
+ data.tar.gz: b258df5e6ce536643a3171beb321cc0cf10ede95e09ef256255891272a6d9968f8d777b185191b72492c4fe727545dca32bcae919b1ece1828a57e6cea0b1b6f
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rack-rscript.rb CHANGED
@@ -170,7 +170,7 @@ class RackRscript
170
170
  def render(name, type, options={})
171
171
  layout = Tilt[type.to_s].new(options) {|x| @templates[:layout][:content]}
172
172
  template = Tilt[type.to_s].new(options) {|x| @templates[name][:content]}
173
- layout.render{ template.render }
173
+ layout.render{ template.render(self)}
174
174
  end
175
175
 
176
176
  def template(name, type=nil, &blk)
@@ -181,7 +181,6 @@ class RackRscript
181
181
 
182
182
  layout = Tilt[@templates[:layout][:type].to_s].new(options) {|x| @templates[:layout][:content]}
183
183
  template = Tilt[@templates[name][:type].to_s].new(options) {|x| @templates[name][:content]}
184
- layout.render{ template.render }
184
+ layout.render{ template.render(self)}
185
185
  end
186
186
  end
187
-
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-rscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -29,7 +29,7 @@ cert_chain:
29
29
  PrSIAHSciIEyWkxdvMiXuEOAU+cBA3uVHTfpn/QHpap2lC3rCNFDCt1jdNhsvPJW
30
30
  P8hoKd8f6iDnTJw4mqinZSTTIweaDo1s
31
31
  -----END CERTIFICATE-----
32
- date: 2013-08-20 00:00:00.000000000 Z
32
+ date: 2013-08-21 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rack
metadata.gz.sig CHANGED
Binary file