We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec71230 commit bc48446Copy full SHA for bc48446
README.md
@@ -97,6 +97,15 @@ button = html(t"<button id={element_id}>Click me</button>")
97
# <button id="my-button">Click me</button>
98
```
99
100
+Multiple substitutions in a single attribute are supported too:
101
+
102
+```python
103
+first = "Alice"
104
+last = "Smith"
105
+button = html(t'<button data-name="{first} {last}">Click me</button>')
106
+# <button data-name="Alice Smith">Click me</button>
107
+```
108
109
Boolean attributes are supported too. Just use a boolean value in the attribute
110
position:
111
0 commit comments