Sha256: 6c38b3e53203fffbff0934b5586107a98b17c942622e6b7b7f361c7bcfed2068

Contents?: true

Size: 449 Bytes

Versions: 5

Compression:

Stored size: 449 Bytes

Contents

require "dry/web/container"
require "dry/system/components"

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

5 entries across 5 versions & 1 rubygems

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