Skip to content

[Native] add helpers to support hotwire native #2557

Open
@zairigimad

Description

@zairigimad
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions