4 %html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
10 %script{:type => "text/javascript",
11 :src => "javascripts/script_#{2 + 7}"}
17 <div id="blah">Blah!</div>
22 %html(xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en")
24 %a(title=@title href=href) Stuff
25 %a{:title => @title, :href => href} Stuff
27 %script(type="text/javascript"
28 src="javascripts/script_#{2 + 7}")
30 %html{html_attrs('fr-fr')}
32 %input{:selected => true}
37 %span#rice Chicken Fried
38 %p.beans{ :food => 'true' } The magical fruit
39 %h1.class.otherclass#id La La La
42 .article.title Doogie Howser Comes Out
43 .article.date 2006-11-05
45 Neil Patrick Harris would like to dispel any rumors that he is straight
48 %meta{'http-equiv' => 'Content-Type', :content => 'text/html'}/
51 %meta{'http-equiv' => 'Content-Type', :content => 'text/html'}
68 / This is the peanutbutterjelly element
72 %p This doesn't render...
74 %h1 Because it's commented out!
77 %a{ :href => 'http://www.mozilla.com/en-US/firefox/' }
89 - (42...47).each do |i|
102 %p This is #{h quality} cake!
103 %p= "This is the #{h quality} cake!"
106 Look at \\#{h word} lack of backslash: \#{foo}
107 And yon presence thereof: \{foo}
110 $(document).ready(function() {
111 alert(#{@message.to_json});
114 &= "I like cheese & crackers"
117 != "I feel <strong>!"
119 I feel <strong>!
129 - flavor = "raspberry"
132 I *really* prefer _#{h flavor}_ jam.