You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+3-21
Original file line number
Diff line number
Diff line change
@@ -196,11 +196,11 @@ Any kwargs passed to vite_react_refresh will be added to its generated `<script/
196
196
By default, all script tags are generated with a `type="module"` and `crossorigin=""` attributes just like ViteJS do by default if you are building a single-page app.
197
197
You can override this behavior by adding or overriding this attributes like so :
198
198
199
-
```
200
-
{% vite_asset '<path to your asset>' foo="bar" hello="world" %}
199
+
```jinja-html
200
+
{% vite_asset '<path to your asset>' foo="bar" hello="world" data_turbo_track="reload" %}
201
201
```
202
202
203
-
This line will add `foo="bar"` and `hello="world"` attributes.
203
+
This line will add `foo="bar"`, `hello="world"`, and `data-turbo-track="reload"` attributes.
204
204
205
205
You can also use context variables to fill attributes values :
206
206
@@ -216,24 +216,6 @@ If you want to overrides default attributes just add them like new attributes :
216
216
217
217
Although it's recommended to keep the default `type="module"` attribute as ViteJS build scripts as ES6 modules.
218
218
219
-
You can also set attributes that require `kebab-casing` by padding `json_encoded_attributes`.
0 commit comments