1
0

Add Builder and Markaby

This commit is contained in:
2013-12-14 04:12:26 +07:00
parent 0425c8bac9
commit 89467c5c67
15 changed files with 152 additions and 36 deletions
+27
View File
@@ -0,0 +1,27 @@
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