1
0
Fork 0
template_engine_comparison/templates/builder/big.builder

28 lines
541 B
Plaintext
Raw Permalink Normal View History

2013-12-13 21:12:26 +00:00
xml.html do
xml.head do
xml.title 'Customers List'
end
xml.body do
customers.each do |customer|
xml.dl do
xml.dt 'Name:'
xml.dd customer['name']
xml.dt 'Age:'
xml.dd customer['age']
xml.dt 'Address:'
xml.dd do
[
customer['zip'],
customer['country'],
customer['city'],
customer['address']
].join("\n")
end
xml.dt 'Employer:'
xml.dd customer['employer']
end
end
end
end