From: Don Parakin Date: 2006-06-28T10:09:13+09:00 Subject: Re: eruby binaries for mswin32 Matthew Harris wrote: > I don't understand why you can't use ERB. It may be that there are no > eRuby binaries for Windows because the fact is, for development, ERB > is Good Enough (tm). Matthew, thanks for your response. One of the main reasons I don't believe ERB is Good Enough as a substitute in development for eruby in production is that I use "ERuby.import" to import the page's layout. For example: % def Area1()

Unique stuff for Area 1 of this specific page.

% end % def Area2()

Unique stuff for Area 2 of this specific page.

% end %# (etc, etc, for all the Areas on the page) % ERuby.import('layout3.rhtml') where layout3.rhtml will output most of the HTML including the page's layout structure calling methods Area1 and Area2 at the appropriate places in embed the page's unique content. I have many many pages that share just a few page layouts such as layout3.rhtml. If I need to change a layout, I have only one file to update. This technique is very convenient, worked very well in PHP for the web site I'm now converting to .rhtml, and works very well with ERuby. To make it work in ERB, I believe I'd have to do it differently for ERB than ERuby (no ERuby.import!) ... which means I couldn't promote the files to my production server (which is a hosting service *nix box configured to process .rhtml with eruby). -- Posted via http://www.ruby-forum.com/.