1
0

Add Parkaby implementation, sadly it has no gem specification

This commit is contained in:
2013-12-15 02:45:26 +07:00
parent f4d39d98cb
commit 9becb386fb
8 changed files with 86 additions and 19 deletions
+11 -11
View File
@@ -1,26 +1,26 @@
html do
head do
html {
head {
title 'Customers List'
end
body do
}
body {
customers.each do |customer|
dl do
dl {
dt 'Name:'
dd customer['name']
dt 'Age:'
dd customer['age']
dt 'Address:'
dd do
dd {
[
customer['zip'],
customer['country'],
customer['city'],
customer['address']
].join("\n")
end
}
dt 'Employer:'
dd customer['employer']
end
end
end
end
}
}
}
}
+8 -8
View File
@@ -1,10 +1,10 @@
html do
head do
html {
head {
title window_title
end
body do
}
body {
h1 "Hello, #{username}!"
p do
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
@@ -14,6 +14,6 @@ html do
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
END
end
end
end
}
}
}