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