Twig -> Stimulus -> jump to

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.

How to make typehinting work for this functions in twig?
 

0

Please sign in to leave a comment.