How to pass HTML in helper def?

On our rails application we have helpers to keep our head.haml code clean. If I add these to middleman config.rb helpers it freaks out. Is there anyway to do something like this with direct HTML?

def uncrawlable_meta_tags
  s <<-EOF
  <meta name="robots" content="noindex, follow">
  <meta name="googlebot" content="noindex, follow">
  <meta name="robots" content="noimageindex">
  <meta name="robots" content="noarchive">
  EOF
end

Just put HTML into partial, let’s say _head.haml instead of using a helper and then in your layouts or templates call partial. It is more straightforward way of doing what you want to do.

See more details in docs: https://middlemanapp.com/basics/partials/