Add Builder and Markaby
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
xml.html do
|
||||
xml.head do
|
||||
xml.title window_title
|
||||
end
|
||||
xml.body do
|
||||
xml.h1 "Hello, #{username}!"
|
||||
xml.p do
|
||||
<<-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
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= title %></title>
|
||||
<title><%= window_title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, <%= username %>!</h1>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= title %></title>
|
||||
<title><%= window_title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, <%= username %>!</h1>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
!!!
|
||||
%html
|
||||
%head
|
||||
%title= title
|
||||
%title= window_title
|
||||
%body
|
||||
%h1
|
||||
Hello,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ title }}</title>
|
||||
<title>{{ window_title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, {{ username }}!</h1>
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
html do
|
||||
head do
|
||||
title 'Customers List'
|
||||
end
|
||||
body do
|
||||
customers.each do |customer|
|
||||
dl do
|
||||
dt 'Name:'
|
||||
dd customer['name']
|
||||
dt 'Age:'
|
||||
dd customer['age']
|
||||
dt 'Address:'
|
||||
dd do
|
||||
[
|
||||
customer['zip'],
|
||||
customer['country'],
|
||||
customer['city'],
|
||||
customer['address']
|
||||
].join("\n")
|
||||
end
|
||||
dt 'Employer:'
|
||||
dd customer['employer']
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,19 @@
|
||||
html do
|
||||
head do
|
||||
title window_title
|
||||
end
|
||||
body do
|
||||
h1 "Hello, #{username}!"
|
||||
p do
|
||||
<<-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
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ title }}</title>
|
||||
<title>{{ window_title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, {{ username }}!</h1>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title = title
|
||||
title = window_title
|
||||
body
|
||||
h1 Hello, #{username}!
|
||||
p
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>#{title}</title>
|
||||
<title>#{window_title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, #{username}!</h1>
|
||||
|
||||
Reference in New Issue
Block a user