| 1 |
!!!5 |
| 2 |
|
| 3 |
/[if IE] |
| 4 |
%a{ :href => 'http://www.mozilla.com/en-US/firefox/' } |
| 5 |
%h1 Get Firefox |
| 6 |
|
| 7 |
-# This is a HAML comment. It will not show in the output HTML |
| 8 |
|
| 9 |
-# |
| 10 |
This is a HAML multiline comment |
| 11 |
This won't be displayed |
| 12 |
Nor will this |
| 13 |
Nor will this. |
| 14 |
|
| 15 |
/ This is a HTML comment. It will be rendered as HTML |
| 16 |
|
| 17 |
/ |
| 18 |
%p This doesn't render... |
| 19 |
%div |
| 20 |
%h1 Because it's commented out! |
| 21 |
|
| 22 |
.row |
| 23 |
.col-md-6 |
| 24 |
|
| 25 |
.col-md-6 |
| 26 |
|
| 27 |
|
| 28 |
#users.row.green |
| 29 |
#articles{:style => "border: 5px;"} |
| 30 |
#lists.list-inline |
| 31 |
|
| 32 |
%div#todos.bg-green{:id => "#{@item.type}_#{@item.number}", :class => '#{@item.type} #{@item.urgency}', :phoney => `asdasdasd`} |
| 33 |
|
| 34 |
/ file: app/views/movies/index.html.haml |
| 35 |
|
| 36 |
%ads:{:bleh => 33} |
| 37 |
%p |
| 38 |
Date/Time: |
| 39 |
- now = DateTime.now |
| 40 |
%strong= now |
| 41 |
= if now DateTime.parse("December 31, 2006") |
| 42 |
= "Happy new " + "year!" |
| 43 |
|
| 44 |
%sfd.dfdfg |
| 45 |
#content |
| 46 |
.title |
| 47 |
%h1= @title |
| 48 |
= link_to 'Home', home_url |
| 49 |
|
| 50 |
#contents |
| 51 |
%div#content |
| 52 |
%div.articles |
| 53 |
%div.article.title Blah |
| 54 |
%div.article.date 2006-11-05 |
| 55 |
%div.article.entry |
| 56 |
Neil Patrick Harris |
| 57 |
|
| 58 |
%div[@user, :greeting] |
| 59 |
%bar[290] |
| 60 |
|
| 61 |
/ This is a comment |
| 62 |
|
| 63 |
/ This is another comment with line break above |
| 64 |
|
| 65 |
.row |
| 66 |
.col-md-6 |
| 67 |
.col-md-6 |
| 68 |
|
| 69 |
.col-md-6 |
| 70 |
|
| 71 |
.row |
| 72 |
.col-md-6 |
| 73 |
|
| 74 |
|
| 75 |
.col-md-6 |