module ActionView::Helpers::CaptureHelper

def capture_erb_with_buffer_with_haml(buffer, *args, &block)

def capture_erb_with_buffer_with_haml(buffer, *args, &block)
  if is_haml?
    capture_haml(*args, &block)
  else
    capture_erb_with_buffer_without_haml(buffer, *args, &block)
  end
end