Sha256: 64f47fb080040da2cb8511ad5857020e7f8fddc6be2e86e51bfd647cce2c5a4e

Contents?: true

Size: 593 Bytes

Versions: 13

Compression:

Stored size: 593 Bytes

Contents

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

    def initialize(title:)
      @title = title
    end

    def template(&)
      doctype

      html do
        head do
          meta charset: "utf-8"
          csp_meta_tag
          csrf_meta_tags
          meta name: "viewport", content: "width=device-width,initial-scale=1"
          title { @title }
          stylesheet_link_tag "application"
        end

        body do
          main(&)
        end
      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/layout/templates/layout.rb.erb
phlex-rails-0.4.1 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-rails-0.4.0 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-rails-0.3.2 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-rails-0.3.1 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-rails-0.3.0 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-rails-0.2.2 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-rails-0.2.1 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-rails-0.2.0 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-0.5.3 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-0.5.2 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-0.5.1 lib/generators/phlex/layout/templates/layout.rb.erb
phlex-0.5.0 lib/generators/phlex/layout/templates/layout.rb.erb