Sha256: 24f80d771fc71044bc61594014bcf3228c8c8f8a0482d626218963e04b161ba5

Contents?: true

Size: 579 Bytes

Versions: 8

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

module <%= camelized_slice_name %>
  module Actions
<%= module_controller_declaration %>
<%= module_controller_offset %>class <%= camelized_action_name %> < <%= camelized_slice_name %>::Action
<%- if bundled_views? -%>
<%= module_controller_offset %>  def handle(request, response)
<%- else -%>
<%= module_controller_offset %>  def handle(request, response)
<%= module_controller_offset %>    response.body = self.class.name
<%- end -%>
<%= module_controller_offset %>  end
<%= module_controller_offset %>end
<%= module_controller_end %>
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
hanami-cli-2.2.1 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.2.0 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.2.0.rc1 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli_bulma-0.0.2 lib/hanami/cli_bulma/generators/app/action/slice_action.erb
hanami-cli_bulma-0.0.1 lib/hanami/cli_bulma/generators/app/action/slice_action.erb
hanami-cli-2.2.0.beta2 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.2.0.beta1 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.1.1 lib/hanami/cli/generators/app/action/slice_action.erb