Sha256: ac2134b84c7c19cdb0adc76422ff0c1b5d844d6027dd97f278744a065e0c6868

Contents?: true

Size: 306 Bytes

Versions: 10

Compression:

Stored size: 306 Bytes

Contents

require 'main/view'

module Main
  module Views
    module Users
      class Index < Main::View
        configure do |config|
          config.template = 'users/index'
        end

        def locals(options)
          { users: [{ name: 'Jane' }, { name: 'Joe' }] }
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
dry-web-roda-0.5.1 spec/dummy/apps/main/lib/main/views/users/index.rb
dry-web-roda-0.5.0 spec/dummy/apps/main/lib/main/views/users/index.rb
dry-web-roda-0.4.0 spec/dummy/apps/main/lib/main/views/users/index.rb
dry-web-roda-0.3.0 spec/dummy/apps/main/lib/main/views/users/index.rb
dry-web-roda-0.2.3 spec/dummy/apps/main/lib/main/views/users/index.rb
dry-web-roda-0.2.2 spec/dummy/apps/main/lib/main/views/users/index.rb
dry-web-roda-0.2.1 spec/dummy/apps/main/lib/main/views/users/index.rb
dry-web-roda-0.2.0 spec/dummy/apps/main/lib/main/views/users/index.rb
dry-web-roda-0.1.0 spec/dummy/apps/main/lib/main/views/users/index.rb
dry-web-0.1.0 spec/dummy/apps/main/lib/main/views/users/index.rb