Sha256: 18c2afdd74200e21d02553883a8bddf620c44a955644f6add5f7a7b77e06d97b

Contents?: true

Size: 360 Bytes

Versions: 10

Compression:

Stored size: 360 Bytes

Contents

class MyPagelet < Garterbelt::View
  needs :user
  
  def content
    body.c(:my_pagelet) do
      partial Header, :user => user
      div.id(:wrapper) do
        text 'my page here'
      end
    end
  end
end

class Header < Garterbelt::View
  needs :user
  
  def content
    div.id(:header) do
      partial ViewWithPartial, :user => user
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
garterbelt-0.1.1 spec/integration/templates/view_partial_nest.rb
garterbelt-0.1.0 spec/integration/templates/view_partial_nest.rb
garterbelt-0.0.9 spec/integration/templates/view_partial_nest.rb
garterbelt-0.0.8 spec/integration/templates/view_partial_nest.rb
garterbelt-0.0.7 spec/integration/templates/view_partial_nest.rb
garterbelt-0.0.6 spec/integration/templates/view_partial_nest.rb
garterbelt-0.0.5 spec/integration/templates/view_partial_nest.rb
garterbelt-0.0.4 spec/integration/templates/view_partial_nest.rb
garterbelt-0.0.3 spec/integration/templates/view_partial_nest.rb
garterbelt-0.0.2 spec/integration/templates/view_partial_nest.rb