From: George Moschovitis Date: 2005-03-16T02:19:46+09:00 Subject: Re: eval/binding question > Maybe I should explain why I tried this: > > when using ERB one can compile a template into source, which can then > be eval'ed using eval. Local variables for use in the template can be set > hash and set up local functions inside the defined function from the Well, that's funny :) I just finished working on a VERY similar bit of code. FYI, I came up with a sligthly altered version of your first solution. In my case, name space polution is not a problem. The code will be available soon as part of Nitro's new Mailer subsystem. regards, -g. ps: -- http://nitro.rubyforge.org