lib/generators/phlex/controller/templates/view.rb.erb in phlex-rails-0.4.2 vs lib/generators/phlex/controller/templates/view.rb.erb in phlex-rails-0.5.0
- old
+ new
@@ -1,9 +1,7 @@
<% 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