-
Notifications
You must be signed in to change notification settings - Fork 36
/
haml.haml
35 lines (32 loc) · 648 Bytes
/
haml.haml
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
!!!
#content
.left.column(title="title"){ href: '/hello', test: "#{hello}_#{world}" }
<!-- This is a comment -->
%h2 Welcome to our site!
%p= puts 'HAML MODE'
.right.column
= render partial: 'sidebar'
.container
.row
.span8
%h1.title= @page_title
%p.title= @page_title
%p
/
The same as HTML comment
Hello multiline comment
-# haml comment
This wont be displayed
nor will this
Date/Time:
- now = DateTime.now
%strong= now
- if now > DateTime.parse('December 31, 2006')
= 'Happy new ' + 'year!'
%title
= @title
\= @title
<h1>Title</h1>
<h1 title="HELLO">
Title
</h1>