1
0

Add big templates

This commit is contained in:
2013-12-14 01:43:03 +07:00
parent 1e8c510d47
commit b41d194a63
12 changed files with 154 additions and 27 deletions
+25
View File
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Customers List</title>
</head>
<body>
<% customers.each do |customer| %>
<dl>
<dt>Name:</dt>
<dd><%= customer[:name] %></dd>
<dt>Age:</dt>
<dd><%= customer[:age] %></dd>
<dt>Address:</dt>
<dd>
<%= customer[:zip] %>
<%= customer[:country] %>
<%= customer[:city] %>
<%= customer[:address] %>
</dd>
<dt>Employer:</dt>
<dd><%= customer[:employer] %></dd>
</dl>
<% end %>
</body>
</html>
+25
View File
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Customers List</title>
</head>
<body>
<% customers.each do |customer| %>
<dl>
<dt>Name:</dt>
<dd><%= customer[:name] %></dd>
<dt>Age:</dt>
<dd><%= customer[:age] %></dd>
<dt>Address:</dt>
<dd>
<%= customer[:zip] %>
<%= customer[:country] %>
<%= customer[:city] %>
<%= customer[:address] %>
</dd>
<dt>Employer:</dt>
<dd><%= customer[:employer] %></dd>
</dl>
<% end %>
</body>
</html>
+19
View File
@@ -0,0 +1,19 @@
!!!
%html
%head
%title Customers List
%body
- customers.each do |customer|
%dl
%dt Name:
%dd= customer[:name]
%dt Age:
%dd= customer[:age]
%dt Address:
%dd
= customer[:zip]
= customer[:country]
= customer[:city]
= customer[:address]
%dt Employer:
%dd= customer[:employer]