From: Gavin Kistner Date: 2005-09-10T11:50:03+09:00 Subject: Re: Using Ruby as a preprocessor for another language On Sep 9, 2005, at 6:21 PM, James Edward Gray II wrote: > Are you aware that you can set ERuby (and ERb, the little brother > library included standard with Ruby) to treat any line beginning > with a simple % as code? And further, than you don't have to use <%=...%> if you don't want: > Example: > > % npcs.each do |thug| > The thug's name is: <%= thug.name %> > % end % nps.each do |thug| % _erbout << "The thug's name is: #{thug.name}" % end