2020-04-25 08:02:59 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module LayoutsHelper
|
|
|
|
def parent_layout(layout)
|
|
|
|
@view_flow.set(:layout, output_buffer)
|
|
|
|
output = render(file: "layouts/#{layout}")
|
|
|
|
@haml_buffer.buffer.replace output
|
|
|
|
self.output_buffer = ActionView::OutputBuffer.new(output)
|
|
|
|
end
|
2020-05-08 19:39:09 -07:00
|
|
|
end
|