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
+19
View File
@@ -0,0 +1,19 @@
doctype html
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']
+14
View File
@@ -0,0 +1,14 @@
doctype html
html
head
title = title
body
h1 Hello, #{username}!
p
| 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.