From: Justin Collins Date: 2006-10-18T08:04:48+09:00 Subject: Re: Getting away from the old php code Marc Heiler wrote: > Hello, > > How can i embed ruby code into a html page, > like php code, without using erb, nor > its IMO slightly ugly syntax? (I am > using Apache2.) > > - Yes, I want to do this. > > Basically what I'd like to do is replace > my old php scripts, which are in part > embedded, in part just simple html > generators. I figured that the > stuff that has to be rewritten in ruby > would be a lot easier to maintain and > extend, than continuing with > php (on webstuff). But I like to keep > the "embedded" logic simple as it > currently is. Ruby simply is > a much better language than php. > > > No, I dont need rails - i need a hammer > for my nail, not a hovering tank to shoot > down the whole building (read as: > complexity). :-) > Why not use erb (or eruby)? The syntax is pretty much the same as PHP, except with "<%" instead of "