Skip to content

Instantly share code, notes, and snippets.

@chrisseaton

chrisseaton/render.rb Secret

Last active Apr 24, 2018
Embed
What would you like to do?
require 'erb'
x = 42
template = ERB.new <<-EOF
The value of x is: <%= x %>
EOF
loop do
puts template.result(binding)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment