Sha256: 007d1b54b075beb5686ba65cd778f2d0d475beb2421898a29f1c5cc9c478542a
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
require "pathname" require "dry/web/container" require "dry/system/components" module <%= config[:camel_cased_app_name] %> class Container < Dry::Web::Container require root.join("system/<%= config[:underscored_umbrella_name] %>/container") import core: <%= config[:camel_cased_umbrella_name] %>::Container configure do |config| config.root = Pathname(__FILE__).join("../..").realpath.dirname.freeze config.logger = <%= config[:camel_cased_umbrella_name] %>::Container[:logger] 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-web-roda-0.8.0 | lib/dry/web/roda/templates/subapp/container.rb.tt |