Sha256: 8b1eaf9900c283fb1a7e63651cfcaf8a7428cfa77ef756cbd235ff2817bbeab6

Contents?: true

Size: 386 Bytes

Versions: 6

Compression:

Stored size: 386 Bytes

Contents

# auto_register: false

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

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

Version data entries

6 entries across 6 versions & 2 rubygems

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