Sha256: 8aa494f97ea7dadb54a857391866a34b4c77c1328872f80a155781bdf832a834

Contents?: true

Size: 262 Bytes

Versions: 13

Compression:

Stored size: 262 Bytes

Contents

<% module_namespacing do -%>
module Views
  class <%= class_name %> < Phlex::HTML
    include ApplicationView
    include Phlex::Collection

    def collection_template(&)
      ul(&)
    end

    def item_template
      li { @item }
    end
  end
end
<% end %>

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
phlex-rails-0.4.2 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-rails-0.4.1 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-rails-0.4.0 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-rails-0.3.2 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-rails-0.3.1 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-rails-0.3.0 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-rails-0.2.2 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-rails-0.2.1 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-rails-0.2.0 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-0.5.3 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-0.5.2 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-0.5.1 lib/generators/phlex/collection/templates/collection.rb.erb
phlex-0.5.0 lib/generators/phlex/collection/templates/collection.rb.erb