Sha256: 7aac521947852190b08346d4107be8c833a561477bb63842b0115df75b7f6f76

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

require "dry/web/container"

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 & 1 rubygems

Version Path
dry-web-roda-0.7.5 lib/dry/web/roda/templates/container.rb.tt
dry-web-roda-0.7.4 lib/dry/web/roda/templates/container.rb.tt
dry-web-roda-0.7.3 lib/dry/web/roda/templates/container.rb.tt
dry-web-roda-0.7.2 lib/dry/web/roda/templates/container.rb.tt
dry-web-roda-0.7.1 lib/dry/web/roda/templates/container.rb.tt
dry-web-roda-0.7.0 lib/dry/web/roda/templates/container.rb.tt