From: Jay Levitt Date: 2005-09-12T02:31:32+09:00 Subject: Re: RCR to modify #puts and #print inside ERB In article , discordantus@gmail.com says... > I'm getting the idea that the people on each side of this discussion > disagree because they have different mental models of what ERB does, > and what a ERB document is: > > 1. ERB just implements very fancy, flexible, string interpolation. > or > 2. ERB documents are executable code (actual programs), where text > prints itself, and code blocks get run. Excellent summary. As someone who came from neither PHP nor JSP (PL/I, if you must know), and whose first exposure to ERB was Rails, my mental model is #2, even though deep down I know it's actually implemented as #1. Which is why "puts" outputting to the doc, not stdout, is the non- anomalous (omalous?) behavior to my mind. -- Jay Levitt | Wellesley, MA | I feel calm. I feel ready. I can only Faster: jay at jay dot fm | conclude that's because I don't have a http://www.jay.fm | full grasp of the situation. - Mark Adler