packagist symfony/webpack-encore-bundle v1.11.0
Simpler syntax for stimulus_controller()

latest releases: 2.x-dev, v2.1.1, v2.1.0...
3 years ago

Hi Webpackers!

A short time ago, v1.10.0 was released with a new stimulus_controller() Twig function. This release makes it simpler to use that with only 1 controller:

<!-- new syntax -->
{{ stimulus_controller('chart', { 'name': 'Likes', 'data': [1, 2, 3, 4] }) }}

<!-- existing, longer syntax (still works) -->
{{ stimulus_controller({ 'chart': { 'name': 'Likes', 'data': [1, 2, 3, 4] } }) }}

See #110 for more details.

Diff: v1.10.0...v1.11.0

Happy packing!

Don't miss a new webpack-encore-bundle release

NewReleases is sending notifications on new releases.