Debian Codegraph @

demo/kitchen-sink/docs/slim.slim

raw
1 doctype html
2 html
3 head
4 title Slim Examples
5 meta name="keywords" content="template language"
6 meta name="author" content=author
7 link rel="icon" type="image/png" href=file_path("favicon.png")
8 javascript:
9 alert('Slim supports embedded javascript!')
10
11 body
12 h1 Markup examples
13
14 #content
15 p This example shows you how a basic Slim file looks.
16
17 == yield
18
19 - if items.any?
20 table#items
21 - for item in items
22 tr
23 td.name = item.name
24 td.price = item.price
25 - else
26 p No items found. Please add some inventory.
27 Thank you!
28
29 div id="footer"
30 == render 'footer'
31 | Copyright © #{@year} #{@author}
32 indenting test
33
34 - @page_current = true