Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"<%= 'a' -%>
<%= 'b' %>"
"<%= 'a' %>
<%= 'b' %>"
require 'erb'
erb = ERB.new(File.open("#{__dir__}/test.html.erb").read, 0, '-')
puts erb.result binding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment