lib/cuba/render.rb in cuba-3.0.1.rc1 vs lib/cuba/render.rb in cuba-3.0.1.rc2
- old
+ new
@@ -32,10 +32,10 @@
# # Renders in layout
# render("layout.haml") { render("home.haml") }
#
def render(template, locals = {}, options = {}, &block)
_cache.fetch(template) {
- Tilt.new(template, 1, options)
+ Tilt.new(template, 1, options.merge(outvar: '@_output')
}.render(self, locals, &block)
end
# @private Used internally by #render to cache the
# Tilt templates.