require "dry/web/roda/application" require_relative "container" module <%= config[:camel_cased_app_name] %> class Application < Dry::Web::Roda::Application configure do |config| config.routes = "web/routes".freeze config.container = Container end opts[:root] = Pathname(__FILE__).join("../..").realpath.dirname use Rack::Session::Cookie, key: "<%= config[:underscored_app_name] %>.session", secret: <%= config[:camel_cased_umbrella_name] %>::Container.settings.session_secret plugin :csrf, raise: true plugin :flash plugin :dry_view route do |r| r.multi_route r.root do r.view "welcome" end end load_routes! end end