lib/deas/template_source.rb in deas-0.32.0 vs lib/deas/template_source.rb in deas-0.33.0
- old
+ new
@@ -44,10 +44,10 @@
def engine_for_template?(template_name)
self.engine_for?(get_template_ext(template_name))
end
def render(template_name, view_handler, locals, &content)
- [ view_handler.class.layouts,
+ [ view_handler.layouts,
template_name
].flatten.reverse.inject(content) do |render_proc, name|
proc{ get_engine(name).render(name, view_handler, locals, &render_proc) }
end.call
end