From: Steve V Date: 2005-04-21T06:26:07+09:00 Subject: Re: Store erb block and alter scope of erb block eval? > Hmm, okay. As you will see from using the below. The <%=@title%> > value will > only be taken from the value in the TestController. No matter what I do, I > cannot get the @title variable set in the TableBuilder class to be the one > that is used. The primary goal of this all is to be able to use the variable from the object scope other than the controller. The secondary goal is to be able to cache a precompiled template. The method above gets me a proc object(I think). If that is the case, are procs already compiled, or do they need to be compiled at the time of execution? I wanted to store these as ERB templates so that I could take advantage of caching them in a compiled state. But if the procs are already compiled and there is a way to cache them, then that would work as well. Steve