Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add Turbo Drive Components #133

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

Closed
tonysm opened this issue Dec 7, 2023 · 1 comment
Closed

Add Turbo Drive Components #133

tonysm opened this issue Dec 7, 2023 · 1 comment
Assignees

Comments

@tonysm
Copy link
Collaborator

tonysm commented Dec 7, 2023

There are several Turbo Drive tag helpers in turbo-rails. I think it would be cool to add them here as well, something like:

<x-turbo-exempts-page-from-cache />
<x-turbo-exempts-page-from-preview />
<x-turbo-page-requires-reload />

Which would render the following meta tags, respectively:

<meta name="turbo-cache-control" content="no-cache">
<meta name="turbo-cache-control" content="no-preview">
<meta name="turbo-visit-control" content="reload">
@tonysm tonysm self-assigned this Dec 7, 2023
@tonysm
Copy link
Collaborator Author

tonysm commented Dec 7, 2023

Perhaps we could use namespaced page components, something like Pulse does: <x-turbo::frame>, <x-turbo::stream>, and <x-turbo::exempts-page-from-cache />... if that's the case, we'd have to adapt the existing components, as well as provide the deprecated ones as well and update the docs.

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

No branches or pull requests

1 participant