Sha256: bc3d9efb0212295865d1ef9899e330a16d6397e0e03c32e69607d9c1742a4ba8

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

class ApplicationLayout < ApplicationView
	include Phlex::Rails::Layout

	def view_template(&block)
		doctype

		html do
			head do
				title { "You're awesome" }
				meta name: "viewport", content: "width=device-width,initial-scale=1"
				csp_meta_tag
				csrf_meta_tags
				stylesheet_link_tag "application", data_turbo_track: "reload"
				javascript_importmap_tags
			end

			body do
				main(&block)
			end
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phlex-rails-1.2.2 lib/generators/phlex/install/templates/application_layout.rb
phlex-rails-1.2.1 lib/generators/phlex/install/templates/application_layout.rb
phlex-rails-1.2.0 lib/generators/phlex/install/templates/application_layout.rb