-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
On https://symfonycasts.com/screencast/stimulus/ajax-html you're using "native" HTML/Stimulus syntax
data-search-preview-target=""
whereas on previous pages, you're using the Twig helpers, e.g.
{{ stimulus_controller('search-preview') }}
I have a general question: What's the advantage of those Twig helpers at all? At symfony/webpack-encore-bundle#119 (comment), you're saying:
Remembering the syntax for targets and actions is not always easy :)
But the Twig syntax needs to be remembered too... ;-)
If there are true advantages, they should be mentioned at https://symfony.com/doc/current/frontend/encore/simple-example.html#stimulus-symfony-ux - and if there aren't, then both syntaxes should be shown (as equivalently "valid" alternatives).
Metadata
Metadata
Assignees
Labels
No labels