lib/stache/mustache/layout.rb in stache-1.0.3 vs lib/stache/mustache/layout.rb in stache-1.1.0
- old
+ new
@@ -22,10 +22,10 @@
rendered_template = super(page_template, ctx)
# stick that rendered template as :yield into the layout template
# (which will be combined with the current context)
if (!ctx.is_a?(::Mustache::Context))
- rendered_template = super(layout_template, :yield => rendered_template)
+ rendered_template = super(layout_template, yield: rendered_template)
end
rendered_template
end
end