From: Gavin Kistner Date: 2006-10-12T01:39:22+09:00 Subject: Re: ERB as a macro pre-processor? From: Rich Morin [mailto:rdm@cfcl.com] > One possibility that occurred to me is to use ERB as a macro > pre-processor. [snip] > eval template.result(binding) Out of curiosity, would there be any benefit to writing the code to a (temporary) file and having Ruby require that file, instead of eval'ing the resulting string? Obviously the file version has the downside of using system resources and delay for writing/reading the file. However, I have been tought to have such an aversion to 'eval' in various languages that some part of me wonders if there would be a good reason to let Ruby do things in a 'standard' way rather than using eval.