Test showing wrap_layout is still broken when used with haml

This commit is contained in:
Ben Hollis 2012-03-25 01:02:46 -07:00 committed by Thomas Reynolds
parent d8d4769702
commit 9b5d1f17d0
6 changed files with 27 additions and 0 deletions

View file

@ -336,6 +336,11 @@ module Middleman
@_out_buf = _buf_was
end
layout_path = locate_layout(layout_name, current_engine)
if !@_out_buf
raise "wrap_layout is currently broken for this templating system"
end
@_out_buf.concat render_individual_file(layout_path, @current_locs || {}, @current_opts || {}, self) { content }
end