HAML mode

x
 
1
!!!
2
#content
3
.left.column(title="title"){:href => "/hello", :test => "#{hello}_#{world}"}
4
    <!-- This is a comment -->
5
    %h2 Welcome to our site!
6
    %p= puts "HAML MODE"
7
  .right.column
8
    = render :partial => "sidebar"
9
10
.container
11
  .row
12
    .span8
13
      %h1.title= @page_title
14
%p.title= @page_title
15
%p
16
  /
17
    The same as HTML comment
18
    Hello multiline comment
19
20
  -# haml comment
21
      This wont be displayed
22
      nor will this
23
  Date/Time:
24
  - now = DateTime.now
25
  %strong= now
26
  - if now > DateTime.parse("December 31, 2006")
27
    = "Happy new " + "year!"
28
29
%title
30
  = @title
31
  \= @title
32
  <h1>Title</h1>
33
  <h1 title="HELLO">
34
    Title
35
  </h1>
36
    

MIME types defined: text/x-haml.

Parsing/Highlighting Tests: normal, verbose.