Sha256: edbc115b4c07102f59017e3339db5414457ce2234d65db36ca9c95454f0b8df1

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 Bytes

Contents

# auto_register: false

require "slim"
require "dry/view/controller"
require "<%= config[:underscored_umbrella_name] %>/<%= config[:underscored_project_name] %>/container"

module <%= config[:camel_cased_umbrella_name] %>
  module <%= config[:camel_cased_app_name] %>
    module View
      class Controller < Dry::View::Controller
        configure do |config|
          config.paths = [Container.root.join("web/templates")]
          config.context = Container["view.context"]
          config.layout = "application"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry-web-roda-0.11.0 lib/dry/web/roda/templates/subapp/view__controller.rb.tt
dry-web-roda-0.10.0 lib/dry/web/roda/templates/subapp/view__controller.rb.tt
dry-web-roda-0.9.1 lib/dry/web/roda/templates/subapp/view__controller.rb.tt
dry-web-roda-0.9.0 lib/dry/web/roda/templates/subapp/view__controller.rb.tt