HAML mode !!! #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> x 1!!!2#content3.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.column8 = render :partial => "sidebar"910.container11 .row12 .span813 %h1.title= @page_title14%p.title= @page_title15%p16 /17 The same as HTML comment18 Hello multiline comment1920 -# haml comment21 This wont be displayed22 nor will this23 Date/Time:24 - now = DateTime.now25 %strong= now26 - if now > DateTime.parse("December 31, 2006")27 = "Happy new " + "year!"2829%title30 = @title31 \= @title32 <h1>Title</h1>33 <h1 title="HELLO">34 Title35 </h1>36 MIME types defined: text/x-haml. Parsing/Highlighting Tests: normal, verbose.