-
Notifications
You must be signed in to change notification settings - Fork 1
/
readme_example.txt
43 lines (35 loc) · 980 Bytes
/
readme_example.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
========================
Example from slim readme
========================
doctype html
html
head
title Slim Examples
meta name="keywords" content="template language"
meta name="author" content=author
link rel="icon" type="image/png" href=file_path("favicon.png")
javascript:
alert('Slim supports embedded javascript!')
body
h1 Markup examples
#content
p This example shows you how a basic Slim file looks.
== yield
- if items.any?
table#items
- for item in items
tr
td.name = item.name
td.price = item.price
- else
p No items found. Please add some inventory.
Thank you!
div id="footer"
== render 'footer'
| Copyright © #{@year} #{@author}
---
(source_file
(doctype (doctype_html5))
(element name: (tag_name) children: (nested
(element name: (tag_name) children: (nested
(element name: (tag_name) (element_text)))))))