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: docs/preprocessing.md
+2
Original file line number
Diff line number
Diff line change
@@ -316,6 +316,8 @@ This is also necessary to pass callbacks:
316
316
button(on:click!="{(e) => doTheThing(e)}")
317
317
```
318
318
319
+
It is not possible to use template literals for attribute values. You can't write `` attr=`Hello ${value ? 'Foo' : 'Bar'}` ``, instead write `attr="Hello {value ? 'Foo' : 'Bar'}"`.
320
+
319
321
**Spreading props:**
320
322
321
323
To spread props into a pug element, wrap the `{...object}` expression with quotes `"`.
0 commit comments