On 4/6/07, talkin ruby <rubytalk.heidmotron / gmail.com> wrote:
> just wondering if you could do something like this...
>
> ERB.new( some_erb_string ).result  #  '<%= result %>'  another erb template
>
> so that way the result could be processed by another ERB.new
>

You are an evil and twisted individual!  ;)

To answer your question, though, sure!  ERb can do that.

require 'erb'

@blah = '<%= @not_blah %>'
ERB.new( "blah <%= @blah %>" ).result    #=>  "blah <%= @not_blah %>"


Blessings,
TwP