require 'ragtag'
template = %q{
John Doe
The customer is year old.
The customer is a senior citizen.
The customer is a senior citizen.
}
require 'ostruct'
customer = OpenStruct.new
customer.name = "John Roberts"
customer.address = "555 Hobart St"
customer.city = "Palm Bay"
customer.state = "FL"
customer.zip = "32709"
customer.age = 65
customer.tags = [ 'ruby', 'javascript' ]
customer_class = customer.age > 60 ? 'senior' : 'normal'
xml = RagTag.compile(template, binding)
puts xml