#!/usr/bin/env ruby require 'erb' person = "myValue!" temp = ERB.new( "Hello, <%= person %>" ) puts temp.result( binding ) # => Hello, myValue!