Sha256: f289152462d218c1fa925d9e6288be5380603263d4bf240e83d44de8a86c9669

Contents?: true

Size: 222 Bytes

Versions: 3

Compression:

Stored size: 222 Bytes

Contents

# frozen_string_literal: true

<% module_namespacing do -%>
class <%= class_name %>Component < ApplicationComponent
  def view_template
    h1 { "<%= class_name %>" }
    p { "Find me in <%= @path %>" }
  end
end<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phlex-rails-1.2.2 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-1.2.1 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-1.2.0 lib/generators/phlex/component/templates/component.rb.erb