From: Gennady Bystritksy Date: 2005-07-21T06:34:52+09:00 Subject: Re: [Rails] Alternative to <%= Brian Takita wrote: > Hello, > > Is there another way to render html to the final page without using <%= > ? > > I tried using print, but the output was the Webrick console. > > Thank you, > Brian Takita > > From a controller method responsible for generating the page, you can use method render(:text => "content"), where "content" is an html content to show in the browser. If you are looking for alternatives to ERB, you can try Amrita2 (http://amrita2.rubyforge.org/). Or wait for my soon-to-be-released XHTML template expansion library called "Facial" (heavily influenced by Amrita2, see http://facial.rubyforge.org/wiki/wiki.pl for more information) ;-). Gennady.