Sha256: fc37b37d6f36310ecb8888b941d47167245736e3fc01bf43cc21ce882bf9e635

Contents?: true

Size: 374 Bytes

Versions: 17

Compression:

Stored size: 374 Bytes

Contents

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

    def template
      <%= "# " unless @layout %>render Layout.new(title: "<%= class_name.gsub("::", " ").titlecase %>") do
        h1 { "<%= class_name %>" }
        p { "Find me in <%= @path %>" }
      <%= "# " unless @layout %>end
    end
  end
end
<% end %>

Version data entries

17 entries across 17 versions & 2 rubygems

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