From: "Gerardo Santana Gómez Garrido" Date: 2006-12-25T19:46:31+09:00 Subject: Re: A problem about replacing a string in a template. 2006/12/25, Kuang Dong : > File 1: test.tpl > > Hello,#{name}! > > File 2: test.rb > > name = "jack" > f = File.open("test.tpl") > puts f.read > puts "Hello,#{name}" > f.close > > And the result is: > Hello,#{name}! > Hello,jack! > > How to change the "#{name}" to "jack"? puts eval f.read -- Gerardo Santana