Sha256: d0316770173101d754468d105e9ceedc8f1892eb6688e1700f279c2fa2dc38bc

Contents?: true

Size: 1.93 KB

Versions: 699

Compression:

Stored size: 1.93 KB

Contents

self << '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
html(:xmlns=>'http://www.w3.org/1999/xhtml', 'xml:lang'=>'en-US') do
  head do
    title "Hampton Catlin Is Totally Awesome"
    meta("http-equiv" => "Content-Type", :content => "text/html; charset=utf-8")
  end
  body do
    # You're In my house now!
    div :class => "header" do
      self << %|Yes, ladies and gentileman. He is just that egotistical.
      Fantastic! This should be multi-line output
      The question is if this would translate! Ahah!|
      self << 1 + 9 + 8 + 2 #numbers should work and this should be ignored
    end
    div(:id => "body") { self << "Quotes should be loved! Just like people!"}
    120.times do |number|
      number
    end
    self << "Wow.|"
    p do
      self << "Holy cow        " + 
        "multiline       " +       
        "tags!           " + 
        "A pipe (|) even!"   
      self << [1, 2, 3].collect { |n| "PipesIgnored|" }
      self << [1, 2, 3].collect { |n|     
          n.to_s                    
        }.join("|")                
    end
    div(:class => "silent") do
      foo = String.new
      foo << "this"
      foo << " shouldn't"
      foo << " evaluate"
      self << foo + " but now it should!"
      # Woah crap a comment!
    end
    # That was a line that shouldn't close everything.
    ul(:class => "really cool") do
      ('a'..'f').each do |a|
        li a
      end
    end
    div((@should_eval = "with this text"), :id => "combo", :class => "of_divs_with_underscore")
    [ 104, 101, 108, 108, 111 ].map do |byte|
      byte.chr
    end
    div(:class => "footer") do
      strong("This is a really long ruby quote. It should be loved and wrapped because its more than 50 characters. This value may change in the future and this test may look stupid. \nSo, I'm just making it *really* long. God, I hope this works", :class => "shout")
    end
  end
end

Version data entries

699 entries across 605 versions & 26 rubygems

Version Path
haml-edge-2.1.4 test/haml/markaby/standard.mab
haml-edge-2.1.3 test/haml/markaby/standard.mab
haml-edge-2.1.23 test/haml/markaby/standard.mab
haml-edge-2.1.22 test/haml/markaby/standard.mab
haml-edge-2.1.13 test/haml/markaby/standard.mab
haml-edge-2.1.17 test/haml/markaby/standard.mab
haml-edge-2.1.15 test/haml/markaby/standard.mab
haml-edge-2.1.6 test/haml/markaby/standard.mab
haml-edge-2.1.8 test/haml/markaby/standard.mab
haml-edge-2.1.7 test/haml/markaby/standard.mab
haml-edge-2.1.9 test/haml/markaby/standard.mab
merbjedi-haml-2.1.0 test/haml/markaby/standard.mab
radiant-0.6.7 vendor/plugins/haml/test/haml/markaby/standard.mab
radiant-0.6.9 vendor/plugins/haml/test/haml/markaby/standard.mab
radiant-0.6.8 vendor/plugins/haml/test/haml/markaby/standard.mab
radiant-0.7.0 vendor/plugins/haml/test/haml/markaby/standard.mab
radiant-0.8.0 vendor/plugins/haml/test/haml/markaby/standard.mab
radiant-0.7.1 vendor/plugins/haml/test/haml/markaby/standard.mab
spree-0.8.0 vendor/gems/haml-2.1.0/test/haml/markaby/standard.mab