Sha256: 7e5b321dc9a6cf0322c8f4a5832005afabde3837ff0a90a99c28b38d62dd2c01

Contents?: true

Size: 507 Bytes

Versions: 6

Compression:

Stored size: 507 Bytes

Contents

require "dry/web/container"
require "dry/system/components"
require 'dry-monitor'
Dry::Monitor.load_extensions(:rack)

module <%= config[:camel_cased_app_name] %>
  class Container < Dry::Web::Container
    configure do
      config.name = :<%= config[:underscored_project_name] %>
      config.listeners = true
      config.default_namespace = "<%= config[:underscored_project_name] %>"
      config.auto_register = %w[lib/<%= config[:underscored_project_name] %>]
    end

    load_paths! "lib"
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dry-web-roda-0.14.0 lib/dry/web/roda/templates/container.rb.tt
dry-web-web_pipe-0.2.0 lib/dry/web/web_pipe/templates/container.rb.tt
dry-web-roda-0.13.1 lib/dry/web/roda/templates/container.rb.tt
dry-web-roda-0.13.0 lib/dry/web/roda/templates/container.rb.tt
dry-web-web_pipe-0.1.0 lib/dry/web/web_pipe/templates/container.rb.tt
dry-web-roda-0.12.0 lib/dry/web/roda/templates/container.rb.tt