-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (68 loc) · 3.5 KB
/
index.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="Slim is a Ruby template language whose goal is reduce html syntax to the essential parts without becoming cryptic."/>
<link href="css/slim.css" media="screen" rel="stylesheet" type="text/css"/>
<title>Slim - A Fast, Lightweight Template Engine for Ruby</title>
</head>
<body>
<div id="side">
<div class="wrap">
<h1>Slim > Home</h1>
<h2 id="slogan">A lightweight templating engine for Ruby</h2>
<ul id="links">
<li><a href="index.html" class="active">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contribute.html">Contribute</a></li>
<li><a href="https://github.com/sponsors/slim-template">Sponsoring</a></li>
<li><a href="https://rubydoc.info/gems/slim/frames">Docs</a></li>
<li><a href="https://rubydoc.info/gems/slim/file/doc/logic_less.md">Logic less</a></li>
<li class="last"><a href="https://rubydoc.info/gems/slim/frames">API</a></li>
</ul>
<p><a href="https://github.com/slim-template/slim" class='github'>slim-template<span>/</span><strong>slim</strong></a></p>
<p>
<a href="http://rubygems.org/gems/slim"><img src="https://badge.fury.io/rb/slim.png"/></a>
</p>
</div>
</div>
<div id="main" class="home">
<div class="wrap">
<pre>
<code>
<span class='tag'>doctype</span> html
<span class='tag'>html</span>
<span class='tag'>head</span>
<span class='tag'>title</span> Slim Examples
<span class='tag'>meta</span> name=<span class='string'>"keywords"</span> content=<span class='string'>"template language"</span>
<span class='tag'>meta</span> name=<span class='string'>"author"</span> content=author
<span class='filter'>javascript:</span>
alert('Slim supports embedded javascript!')
<span class='tag'>body</span>
<span class='tag'>h1</span> Markup examples
<span class='tag'>#content</span>
<span class='tag'>p</span> This example shows you what a basic Slim file looks like.
== <span class='keyword'>yield</span>
- <span class='keyword'>unless</span> items.empty?
<span class='tag'>table</span>
- items.each <span class='keyword'>do</span> |<span class='tag'>item</span>|
<span class='tag'>tr</span>
<span class='tag'>td.name</span> = item.name
<span class='tag'>td.price</span> = item.price
- <span class='keyword'>else</span>
<span class='tag'>p</span>
| No items found. Please add some inventory.
Thank you!
<span class='tag'>div</span> id=<span class='string'>"footer"</span>
= <span class='keyword'>render</span> <span class='string'>'footer'</span>
| Copyright © #{year} #{author}
</pre>
</code>
</div>
<p class="foot up">
Source: <a href="http://github.com/slim-template/slim">slim-template/slim</a> | Slim maintained by <a href="http://github.com/minad">minad</a> | Logo & design by <a href="http://github.com/activestylus">activestylus</a> | Premium sponsors: <a href="https://github.com/hakuna">Hakuna AG</a>
</p>
</div>
<a id="forkme" href="http://github.com/slim-template/slim">Fork me on Github</a>
</body>
</html>