Sha256: e5b5d135179f52e7c598c19f254c20d2c3e616bc90d27626d833b9e6fa3053aa

Contents?: true

Size: 294 Bytes

Versions: 2

Compression:

Stored size: 294 Bytes

Contents

require "web_pipe"
require "<%= config[:underscored_project_name] %>/web"

module <%= config[:camel_cased_app_name] %>
  module Actions
    class Root
      include WebPipe

      compose :web, Web.new

      plug(:view) do |conn|
        conn.view('views.welcome')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-web-web_pipe-0.2.0 lib/dry/web/web_pipe/templates/flat_project/root.rb.tt
dry-web-web_pipe-0.1.0 lib/dry/web/web_pipe/templates/flat_project/root.rb.tt