Sha256: 787b1eb4b4dcb1432b996c28cce8933fa47ae6862ecef58643b377f6a9cd1ca3

Contents?: true

Size: 217 Bytes

Versions: 10

Compression:

Stored size: 217 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
phlex-rails-1.1.2 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-1.1.1 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-1.1.0 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-1.0.0 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-0.10.0 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-0.8.1 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-0.9.0 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-0.8.0 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-0.7.1 lib/generators/phlex/component/templates/component.rb.erb
phlex-rails-0.7.0 lib/generators/phlex/component/templates/component.rb.erb