From: Brian Candler Date: 2008-09-29T16:59:01+09:00 Subject: Re: erb reference anywhere online? Chad Perrin wrote: > On Fri, Sep 26, 2008 at 06:23:07PM +0900, Brian Candler wrote: >> Rails locates a template, or how to factor code out into helper methods) >> rather than Erb itself. > > Me? No, I'm not talking about anything directly Rails-related. I, for > instance, use an erb implementation all the time, and basically never > use > Rails. As far as I understand it, raw ERB is just ERB.new(File.read("/path/to/template")).result(binding) You said: "Greater visibility of certain documentation matters might be nice, too, like all the default path and custom path definition stuff that goes on when working with an erb implementation." But that didn't make much sense to me, except in the context of some particular framework which uses ERB, where the framework will do things like locating a template for a particular controller/action. Can you give an example of what you mean? -- Posted via http://www.ruby-forum.com/.