Skip to content

Commit 28eed50

Browse files
committed
Fixing old stimulus_controller() syntax for multiple controllers
1 parent bbd2c15 commit 28eed50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,8 @@ Then in your template, add your controller to the HTML attribute:
178178
<title>Swup</title>
179179
{# ... #}
180180
</head>
181-
<body {{ stimulus_controller({
182-
myswup: {},
183-
'symfony/ux-swup/swup': {}
181+
<body {{ stimulus_controller('myswup')|stimulus_controller('symfony/ux-swup/swup', {
182+
// ... options
184183
}) }}>
185184
{# ... #}
186185
</body>

0 commit comments

Comments
 (0)