Sha256: 8ec7567a215f185a253803cc3256a2fda7f7391fc98a726e4520ca70d7fa1cdb

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

<% module_namespacing do -%>
module Views
  class <%= class_name %>::<%= @action.camelize %> < Phlex::HTML
    def template
      <%= "# " unless @has_layout %>render Layout.new(title: "<%= class_name.gsub("::", " ").titlecase %> - <%= @action.titlecase %>") do
        h1 { "<%= class_name %>#<%= @action %>" }
        p { "Find me in <%= @path %>" }
      <%= "# " unless @has_layout %>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/controller/templates/view.rb.erb
phlex-rails-0.6.0 lib/generators/phlex/controller/templates/view.rb.erb
phlex-rails-0.5.1 lib/generators/phlex/controller/templates/view.rb.erb
phlex-rails-0.5.0 lib/generators/phlex/controller/templates/view.rb.erb