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

[Native] add helpers to support hotwire native #2557

Open
zairigimad opened this issue Feb 9, 2025 · 0 comments
Open

[Native] add helpers to support hotwire native #2557

zairigimad opened this issue Feb 9, 2025 · 0 comments
Labels

Comments

@zairigimad
Copy link
Contributor

  • Hotwire native applications send a special user-agent that contains 'Hotwire Native'. We can add a Listener that inject in the request a special parameter isHotwireNative that can be used to control the behavior of the application.
  • same as the listener we can add a twig helper to check if isHotwireNative or not to be able to hide or alter the twig.
  • every Hotwire Native application can be controlled with a simple path configuration json file, the idea is to add a route that expose this json and probably generate the json from a configuration file. Maybe it can be just a make command that generates this controller boilerplate
@zairigimad zairigimad added the RFC label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant