Sha256: 88a59ae41584d4d25b25e95166efdae9b1e858e3d842030ffe10f798b6ca13ab

Contents?: true

Size: 430 Bytes

Versions: 14

Compression:

Stored size: 430 Bytes

Contents

# auto_register: false

require "slim"
require "dry-view"
require "<%= config[:underscored_project_name] %>/container"

module <%= config[:camel_cased_app_name] %>
  module View
    class Controller < Dry::View::Controller
      configure do |config|
        config.paths = [Container.root.join("web/templates")]
        config.context = Container["view.context"]
        config.layout = "application"
      end
    end
  end
end

Version data entries

14 entries across 7 versions & 1 rubygems

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