-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
test.slim
53 lines (42 loc) · 1.11 KB
/
test.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
doctype html
html
head
title Slim Test
meta name="keywords" content="slim, syntax"
javascript:
$(function() {
alert('Hello World');
});
haml:
#someid.someclass{:this => 'test'} Content in haml
erb:
<%= some_method(@request) %>
body
/ comment block
with multiple lines
This is another line
h1 = @page_title
p#notice.message
| Welcome to the the syntax test.
This file is to exercise the various markup.
This is another line
- unless @users.empty?
table
- for user in users do
tr
td.user id=some_ruby('ere', @rme) data-test="some text #{with @ruby}" = @post.name
- else
p There are no users.
a href=root_url
| It works too
/ Single comment line
#content Hello #{@user.name}! Welcome to the test page!
Try out Slim!
= function_with_many_parameters(:a, @variable, :option => 1)
p.text
' Another text block
with multiple lines
= link_to('Test', @site)
.text#footer
' Footer text block
with multiple lines