module Haml::Precompiler

def precompiled_with_ambles(local_names)

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
_erb_template = true
  postamble = <<END.gsub("\n", ";")
ecompiled_method_return_value}
re
l_buffer = @haml_buffer.upper
  preamble + locals_code(local_names) + precompiled + postamble
end