From: John Joyce Date: 2007-07-13T07:56:58+09:00 Subject: Re: Ruby and PHP code in html-page On Jul 12, 2007, at 5:46 PM, Travis D Warlick Jr wrote: > John Joyce wrote: >> >> I've been thinking about this as well lately. >> Since Rails is overkill for a lot of little things, it would be >> nice if >> ERb had more ability. >> ERb lacks some of the functionality and flexibility of embedded php. >> With php you can just include a file, but ERb doesn't let you do that >> (AFAIK). > > Couldn't you just put the Erb inside the html? Like: > > > > <%= Erb.new(IO.read(filename)).result %> > > > > -- > Travis Warlick > > "Programming in Java is like dealing with your mom -- > it's kind, forgiving, and gently chastising. > Programming in C++ is like dealing with a disgruntled > girlfriend -- it's cold, unforgiving, and doesn't tell > you what you've done wrong." > Let me toy with it a bit and see how much I love/hate it. JJ