Add Tagz
This commit is contained in:
@@ -3,7 +3,7 @@ html {
|
||||
title 'Customers List'
|
||||
}
|
||||
body {
|
||||
customers.each do |customer|
|
||||
customers.each{ |customer|
|
||||
dl {
|
||||
dt 'Name:'
|
||||
dd customer['name']
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
html_{
|
||||
head_{
|
||||
title_ 'Customers List'
|
||||
}
|
||||
body_{
|
||||
customers.each{ |customer|
|
||||
dl_{
|
||||
dt_ 'Name:'
|
||||
dd_ customer['name']
|
||||
dt_ 'Age:'
|
||||
dd_ customer['age']
|
||||
dt_ 'Address:'
|
||||
dd_{
|
||||
[
|
||||
customer['zip'],
|
||||
customer['country'],
|
||||
customer['city'],
|
||||
customer['address']
|
||||
].join("\n")
|
||||
}
|
||||
dt_ 'Employer:'
|
||||
dd_ customer['employer']
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
html_{
|
||||
head_{
|
||||
title_ window_title
|
||||
}
|
||||
body_{
|
||||
h1_ "Hello, #{username}!"
|
||||
p_{
|
||||
<<-END
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
|
||||
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
|
||||
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
|
||||
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
|
||||
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
|
||||
mollit anim id est laborum.
|
||||
END
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user