Alex Young
5/19/2007 4:07:00 PM
Matt Gretton wrote:
<snip>
> I feel there must exist a more elegant way of creating a file liek this.
> For example, I have heard that ruby on rails dynamically creates files
> containing ruby code. This behavior seems pretty common to various ruby
> projects, for example I know rails creates ruby source code dynamically.
> Not having had experience with such projects I have tried in vain to
> search google for information.
>
As far as I remember, Rails just uses ERB templates. Alternatively,
there's ruby2ruby. I've used the former, but not the latter (yet).
--
Alex