On Jul 16, 2005, at 10:34 AM, Navindra Umanee wrote:

>> Eventually you end up with either a template language
>> or programatic HTML generation in the end.
>>
>
> I agree that this is what I will end up with -- I'm just trying to get
> it to work in the most elegant way I can.

Are you aware that Ruby ships with a templating language in its  
standard library?

irb(main):001:0> require "erb"
=> true
irb(main):002:0> expand, delay = "Expanded!", "Delayed!"
=> ["Expanded!", "Delayed!"]
irb(main):003:0> template = "#{expand} <%= delay %>"
=> "Expanded! <%= delay %>"
irb(main):004:0> ERB.new(template).result(binding)
=> "Expanded! Delayed!"

James Edward Gray II