From: John Joyce Date: 2007-08-01T11:49:56+09:00 Subject: Re: Ruby and PHP code in html-page On Jul 31, 2007, at 2:34 PM, jzakiya wrote: > On Jul 31, 2:21 am, Vadim Shevchenko wrote: >> jzakiya wrote: >>> On Jul 30, 12:22 pm, John Joyce >>> wrote: >>>>>>> I want to include PHP-code. >>>>> request uri. >>>>> For counter-system it's bad variant. >>>>> -- >>>>> Posted viahttp://www.ruby-forum.com/. >> >>>> It might be possible to use ERb (Ruby) to insert the PHP. >>>> And then have the server first process files with Ruby, then >>>> with PHP. >>>> Depends on the server. It's ugly, maybe a little slower, but >>>> probably >>>> possible. >> >>> You may want to look at Erubis. >>> http://www.kuwata-lab.com/erubis/ >> >> With Erubis I can "convert" Ruby-code to PHP. I need to insert PHP- >> code >> in Ruby-project. >> -- >> Posted viahttp://www.ruby-forum.com/. > > Did you look at the Erubis documentation? > http://www.kuwata-lab.com/erubis/users-guide.04.html#lang > > b There are several forms of "eruby" Erubis can work for many languages, but I don't know if it can do them all at the same time. ERb is the Ruby standard library eruby implementation, as far as I know, it does not handle PHP Erubis seems cool, but the docs are a bit difficult to read.