Sha256: b81cd668bb807587d428b1498462e3accaa883d7ae9eae638e943edfff94550f

Contents?: true

Size: 196 Bytes

Versions: 9

Compression:

Stored size: 196 Bytes

Contents

class LayoutComp < Roda::Component
  name :layout
  html './test/dummy/public/index.html'

  def display data, &block
    if server?
      dom.find('body').html(yield)
      dom
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
roda-component-0.0.10 test/dummy/components/layout.rb
roda-component-0.0.9 test/dummy/components/layout.rb
roda-component-0.0.8 test/dummy/components/layout.rb
roda-component-0.0.7 test/dummy/components/layout.rb
roda-component-0.0.6 test/dummy/components/layout.rb
roda-component-0.0.5 test/dummy/components/layout.rb
roda-component-0.0.4 test/dummy/components/layout.rb
roda-component-0.0.3 test/dummy/components/layout.rb
roda-component-0.0.2 test/dummy/components/layout.rb