From: David Alan Black Date: 2000-12-15T21:30:11+09:00 Subject: [ruby-talk:7306] Re: more on the template system On Fri, 15 Dec 2000, Joseph McDonald wrote: > The only real kicker I have left is to figure out > a way to ignore errors where strings contain > variables that have not been defined. > > i.e.: > puts "hello #{not_yet_defined_var}" > should print out: > "hello \n" > instead of just raising an exception. You could do: puts "Hello #{notdef ||= ''}" David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav