1
0

Slim, Liquid templates

This commit is contained in:
2013-12-14 02:40:54 +07:00
parent b41d194a63
commit 41d073b785
12 changed files with 171 additions and 40 deletions
+7 -7
View File
@@ -7,18 +7,18 @@
<% customers.each do |customer| %>
<dl>
<dt>Name:</dt>
<dd><%= customer[:name] %></dd>
<dd><%= customer['name'] %></dd>
<dt>Age:</dt>
<dd><%= customer[:age] %></dd>
<dd><%= customer['age'] %></dd>
<dt>Address:</dt>
<dd>
<%= customer[:zip] %>
<%= customer[:country] %>
<%= customer[:city] %>
<%= customer[:address] %>
<%= customer['zip'] %>
<%= customer['country'] %>
<%= customer['city'] %>
<%= customer['address'] %>
</dd>
<dt>Employer:</dt>
<dd><%= customer[:employer] %></dd>
<dd><%= customer['employer'] %></dd>
</dl>
<% end %>
</body>