Sha256: f444be96982387f614836ba2ddf188d44599c246e0b4fa00bcd61be77810e043

Contents?: true

Size: 499 Bytes

Versions: 6

Compression:

Stored size: 499 Bytes

Contents

# auto_register: false

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

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dry-web-roda-0.14.0 lib/dry/web/roda/templates/subapp/view.rb.tt
dry-web-web_pipe-0.2.0 lib/dry/web/web_pipe/templates/subapp/view.rb.tt
dry-web-roda-0.13.1 lib/dry/web/roda/templates/subapp/view.rb.tt
dry-web-roda-0.13.0 lib/dry/web/roda/templates/subapp/view.rb.tt
dry-web-web_pipe-0.1.0 lib/dry/web/web_pipe/templates/subapp/view.rb.tt
dry-web-roda-0.12.0 lib/dry/web/roda/templates/subapp/view.rb.tt