Sha256: aa8e08cf508349f46820fcabd82d866bf301516905c24159344e377884d342de

Contents?: true

Size: 346 Bytes

Versions: 10

Compression:

Stored size: 346 Bytes

Contents

require 'slim'
require 'dry-view'

require_relative 'container'

module Main
  class Page
    def title
      'Woohaa'
    end
  end
end

module Main
  class View < Dry::View::Layout
    setting :root, Container.root.join('web/templates')
    setting :scope, Page.new
    setting :formats, {html: :slim}
    setting :name, 'app'.freeze
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
dry-web-roda-0.5.1 spec/dummy/apps/main/system/main/view.rb
dry-web-roda-0.5.0 spec/dummy/apps/main/system/main/view.rb
dry-web-roda-0.4.0 spec/dummy/apps/main/system/main/view.rb
dry-web-roda-0.3.0 spec/dummy/apps/main/component/main/view.rb
dry-web-roda-0.2.3 spec/dummy/apps/main/component/main/view.rb
dry-web-roda-0.2.2 spec/dummy/apps/main/component/main/view.rb
dry-web-roda-0.2.1 spec/dummy/apps/main/component/main/view.rb
dry-web-roda-0.2.0 spec/dummy/apps/main/component/main/view.rb
dry-web-roda-0.1.0 spec/dummy/apps/main/core/main/view.rb
dry-web-0.1.0 spec/dummy/apps/main/core/main/view.rb