From: Travis D Warlick Jr Date: 2007-07-13T07:46:27+09:00 Subject: Re: Ruby and PHP code in html-page 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."