From: Jeremy Henty Date: 2007-07-13T06:50:18+09:00 Subject: Re: Ruby and PHP code in html-page On 2007-07-12, Phrogz wrote: > On Jul 12, 12:43 pm, Jeremy Henty wrote: >> On 2007-07-12, John Joyce wrote: >> >> > With php you can just include a file, but ERb doesn't let you do >> > that (AFAIK). >> >> <%= IO.read "yes_it_does.txt" %> > > Not quite when you want the included file to have ERB commands in it: Good point! <%= ERB.new(IO.read("how_about_this_then.erb")).result(binding) %> Jeremy Henty