Gavin Kistner wrote: > On Sep 28, 10:20 am, SpringFlowers AutumnMoon > <summercooln... / gmail.com> 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/.