Eric Armstrong wrote:
I'm reading a file into a string like this:template = File.open("test.dwt").readlines.join My hope was to interpolate the #{variables} in the file with the values defined in the program. The first attempt didn't work: puts template Nor did the second: puts eval(template)
Try eval("\"#{template}\"")...this makes it eval a string with the same contents as your string, causing it to interpolate.
- Charlie --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
