There is stimulus plugin for idea that allows to type hint and jump from html attributes to stimulus controllers. This works really good. You can jump from your twig template straight into stimulus controller/action.
Symfony provides twig helper tags for stimulus like stimulus_controller() and stimulus_action(). Unfortunately for now this parameters are just plain text. Would love to see typehinting and linking like it is done with pure attributes.
For now we must decide whats more friendly: using builders in twig but with no linking or using pure html but be able to jump straight into code.
There is stimulus plugin for idea that allows to type hint and jump from html attributes to stimulus controllers. This works really good. You can jump from your twig template straight into stimulus controller/action.
Symfony provides twig helper tags for stimulus like
stimulus_controller()
andstimulus_action()
. Unfortunately for now this parameters are just plain text. Would love to see typehinting and linking like it is done with pure attributes.For now we must decide whats more friendly: using builders in twig but with no linking or using pure html but be able to jump straight into code.