Sha256: fde6979844d147527bdac947a805964950055dd53bb2039f11298743c139b7d7

Contents?: true

Size: 472 Bytes

Versions: 3

Compression:

Stored size: 472 Bytes

Contents

class PrettyWithEmbeds < Garterbelt::Page
  def head
    script 'type' => 'text/javascript' do
      [
        'alert("foo");',
        "alert(\"bar\");\nvar foo = 'foo';"
      ].each do |js|
        raw_text js
      end
    end
    
    style 'type' => 'text/css' do
      [
        "body { background-color: blue;}",
        "p { background-color: white;}"
      ].each do |css|
        raw_text css
      end
    end
  end
  
  def body
    p "Style me up!"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
garterbelt-0.1.1 spec/integration/templates/pretty_with_embeds.rb
garterbelt-0.1.0 spec/integration/templates/pretty_with_embeds.rb
garterbelt-0.0.9 spec/integration/templates/pretty_with_embeds.rb