Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add turbo 8 meta helpers (#186) #190

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

BarnabeD
Copy link
Contributor

@BarnabeD BarnabeD commented Apr 2, 2024

Add turbo_refreshes_with helper.

Work fine in a Phlex::Rails::Layout

html do
	head do
		yield(:head)
		# ...
	end
end
content_for :head do
	turbo_refreshes_with(method: :morph, scroll: :preserve)
end

@joeldrapper joeldrapper merged commit 9b5498c into phlex-ruby:main Apr 2, 2024
13 checks passed
@joeldrapper
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants