module HAMLHelpers def flatten(input) input.gsub(/\n/, ' ').gsub(/\r/, '') end end