Sha256: d9b73fabd7db8f63260dd71f2d85ba00501c22f28c223bb44f0334b5e8292cc8

Contents?: true

Size: 449 Bytes

Versions: 13

Compression:

Stored size: 449 Bytes

Contents

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

    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

13 entries across 13 versions & 2 rubygems

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