------art_10386_14761321.1175891670695
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

@maybe al.nil? ? true : false

blah <%% <% maybe %>  %>

I use this format in generators for rails.  I dont know if it is as clean
looking for short example but for full rhtml pages it works well.

Stephen Becker IV

On 4/6/07, Tim Pease <tim.pease / gmail.com> wrote:
> 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  #  '<% esult %>'  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
>
>

------art_10386_14761321.1175891670695--