-
Notifications
You must be signed in to change notification settings - Fork 36
/
slim.slim
36 lines (31 loc) · 849 Bytes
/
slim.slim
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
body
table
- for user in users
td id="user_#{user.id}" class=user.role
a href=user_action(user, :edit) Edit #{user.name}
a href=(path_to_user user) = user.name
body
h1(id="logo") = page_logo
h2[id="tagline" class="small tagline"] = page_tagline
h2[id="tagline"
class="small tagline"] = page_tagline
h1 id = "logo" = page_logo
h2 [ id = "tagline" ] = page_tagline
/ comment
second line
/! html comment
second line
<!-- html comment -->
<a href="#{'hello' if set}">link</a>
a.slim href="work" disabled=false running==:atom Text <b>bold</b>
.clazz data-id="test" == 'hello' unless quark
| Text mode #{12}
Second line
= x ||= :ruby_atom
#menu.left
- @env.each do |x|
li: a = x
*@dyntag attr="val"
.first *{:class => [:second, :third]} Text
.second class=["text","more"]
.third class=:text,:symbol