A gem that supports ruby/ruby#1075 (ruby-core:71227).
Installation
$ gem install erb-comment
Usage
require 'erb/comment'
erb = <<-ERB
<#-- <% hello %> --#>
hello
ERB
Erb::Comment.new(erb).result #=> "\nhello\n"License
The gem is available as open source under the terms of the MIT License.