On Feb 7, 2005, at 10:05 AM, Navindra Umanee wrote:

> As for ERB, I'm not yet sure how it's better or easier than the simple
> 2-level string eval I wanted to do.  It seems pretty much the same
> except with different enclosing tags and more overhead.  ERB::Util has
> some interesting subroutines though.  I'll have to look more closely
> to understand the advantages.

Sorry, I missed this message when you posted it.

I was thinking you would Heredoc a erb template using normal #{ ... } 
interpolation for the things you wanted to calculate up front and erb 
<%= ... %> place holders for the bits to fill in later.  Then you could 
just generate the template repeatedly as needed.

Hope that clears up my idea, though I'm sure you have a solution by now.

James Edward Gray II