From: SpringFlowers AutumnMoon Date: 2007-09-29T02:29:15+09:00 Subject: Re: Can we have these two added to ERb? Gavin Kistner wrote: > On Sep 28, 10:20 am, SpringFlowers AutumnMoon > wrote: >> in ERb, we need to write >> >> "the value is #{i}" >> >> and it is a bit more typing. can we have something like >> >> "the value is ##i" as a shorthand? and use #{ } when it involves more >> complicated expressions? > > This feature has nothing to do with ERb; it's part of Ruby's string > interpolation. > > For global and instance variables, you can already do this: > "the value is #@i" > > If that's not enough, you'll have to make a case for an alternate > syntax for local variable interpolation. how about the case that in RoR or server side scripting usage, it can be quite simpler, to contend for Ruby as a server side scripting language? -- Posted via http://www.ruby-forum.com/.