Hi Webpackers!
This release makes stimulus_controller()
, stimulus_action()
and stimulus_target()
much more user-friendly when you either (A) need to add multiple controllers/actions/targets or if you want to pass a controller/action/target into Symfony's form system. For example:
{{ form_row(form.password, {
attr: stimulus_action('hello-controller', 'checkPasswordStrength').toArray()
}) }}
How cool is that?
Feature
- #178 - Add Stimulus Twig filters, handle action parameters & allow filters/functions to return array - @jmsche
Diff: v1.14.1...v1.15.0
Happy packing!