Sha256: 60daa9d59d26f1ccbb59a2247511f03ab848957cfa9496d2abf704423c8cd8a5

Contents?: true

Size: 272 Bytes

Versions: 13

Compression:

Stored size: 272 Bytes

Contents

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

    def template
      render Layout.new(title: "<%= class_name.gsub("::", " ") %>") do
        h1 { "👋 Hello World!" }
      end
    end
  end
end
<% end %>

Version data entries

13 entries across 13 versions & 2 rubygems

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