class Haml::Compiler
def precompiled_with_ambles(local_names)
to avoid ordering issues with partial layouts in Rails. If not available,
Initializes to ActionView::OutputBuffer when available; this is necessary
Returns the precompiled string with the preamble and postamble.
def precompiled_with_ambles(local_names) preamble = <<END.gsub("\n", ";") n nd Haml::Helpers lout = @haml_buffer = Haml::Buffer.new(haml_buffer, #{options.for_buffer.inspect}) out = _hamlout.buffer put_buffer = output_buffer ||= ActionView::OutputBuffer.new rescue nil postamble = <<END.gsub("\n", ";") ecompiled_method_return_value} re l_buffer = @haml_buffer.upper if @haml_buffer preamble + locals_code(local_names) + precompiled + postamble end