From: Sam Kong Date: 2006-03-08T02:38:40+09:00 Subject: Re: How to print stuff in RTHML embedded code (equiv to php "echo")?? Namor wrote: > Hi I got a very noob question which i cant understand why i cant do > things like this...... > > > eg... inside. > helloworld.rhtml > >

> <% > puts "hello" > puts "world" > puts "something something" > %> >

> > > I know i can do this easily in php > echo "yes this works" > echo "testing 123" > echo "yes this works" > ?> > > Can someone help me? I'm not sure if this helps or even if it's good I don't like to open and close with <%...%> repeatedly. So I use the following. <% _erbout << "hello" _erbout << "world" _erbout << "something something" %> Sam