Sha256: b27364810664786a9ab4f88c209878a8457d3d780f69a15175c10caa31b72f72

Contents?: true

Size: 372 Bytes

Versions: 7

Compression:

Stored size: 372 Bytes

Contents

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

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

Version data entries

7 entries across 4 versions & 1 rubygems

Version Path
dry-web-roda-0.6.3 lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/view_controller.rb.tt
dry-web-roda-0.6.3 lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/view_controller.rb.tt
dry-web-roda-0.6.2 lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/view_controller.rb.tt
dry-web-roda-0.6.2 lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/view_controller.rb.tt
dry-web-roda-0.6.1 lib/dry/web/roda/skeletons/flat_project/system/__underscored_app_name__/view_controller.rb.tt
dry-web-roda-0.6.1 lib/dry/web/roda/skeletons/sub_app/system/__underscored_app_name__/view_controller.rb.tt
dry-web-roda-0.6.0 lib/dry/web/roda/skeletons/app/system/__underscored_app_name__/view_controller.rb.tt