From: Masatoshi SEKI Date: 2000-05-13T02:30:18+09:00 Subject: [ruby-talk:02795] Re: win OLE / eRuby > Also, the same question for eRuby - it seems pretty straightforward, but > I can't find any English documentation, so more examples would be > great. Table.rhtml writes a table of alternate white and gray rows. This example lists current directory files as follows. list = Dir.glob('*').sort Replace it with your query code, in your application. % ruby erb.rb table.rhtml > table.html # erb % eruby table.rhtml > table.html # eruby -- table.rhtml --- 401 Unauthorized <% def h(s) s.to_s.gsub(/&/, "&").gsub(/\"/, """).gsub(/>/, ">").gsub(/

Dir.glob('*')

<% bgattr = BGAttr.new list.each do |v| %> >
<%=h v %> <% end %>

Masatoshi SEKI