Sha256: 49f4a1447ddc92ae184bd308fa4c39911a01463a92332d29db7908bd8f586573

Contents?: true

Size: 323 Bytes

Versions: 9

Compression:

Stored size: 323 Bytes

Contents

class TestApp < Roda
  plugin :component, {
    path: './test/dummy/components'
  }

  route do |r|
    r.components

    r.on 'app' do
      'working'
    end

    r.root do
      component(:layout) do
        'Hello, World!'
      end
    end
  end

  Dir["./test/dummy/components/*.rb"].each { |file| require file }
end

Version data entries

9 entries across 9 versions & 1 rubygems

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