Sha256: c53ca67979f4295c841b33b1f24796f75c287772b451ef2bc526eb3781d4b9e4

Contents?: true

Size: 243 Bytes

Versions: 4

Compression:

Stored size: 243 Bytes

Contents

<% module_namespacing do -%>
module Views
  class <%= class_name %> < Phlex::HTML
    def template
      render Layout.new(title: "<%= class_name.gsub("::", " ") %>") do
        h1 { "👋 Hello World!" }
      end
    end
  end
end
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phlex-rails-0.6.1 lib/generators/phlex/page/templates/page.rb.erb
phlex-rails-0.6.0 lib/generators/phlex/page/templates/page.rb.erb
phlex-rails-0.5.1 lib/generators/phlex/page/templates/page.rb.erb
phlex-rails-0.5.0 lib/generators/phlex/page/templates/page.rb.erb