Skip to content

Commit 7102947

Browse files
committed
wip
1 parent 3851bb5 commit 7102947

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/1-essentials/02-views.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,18 @@ The example above will only render the child `div` elements:
232232
<div>Post C</div>
233233
```
234234

235+
### Invalid single quotes
236+
237+
While attributes with single quotes are allowed by the HTML spec, they are not by Tempest View. You must always use double quotes for attribute values, for all attributes.
238+
239+
```
240+
<{:hl-keyword:div:} {:hl-property::isset:}="$title">{{ $title }}</{:hl-keyword:div:}>
241+
<{:hl-keyword:div:} {:hl-property:class:}="foo bar"></{:hl-keyword:div:}>
242+
243+
<{:hl-keyword:div:} {:hl-property::isset:}={:hl-error:'title':}>{{ $title }}</{:hl-keyword:div:}>
244+
<{:hl-keyword:div:} {:hl-property:class:}={:hl-error:'foo bar':}></{:hl-keyword:div:}>
245+
```
246+
235247
## View components
236248

237249
Components allow for splitting the user interface into independent and reusable pieces.

0 commit comments

Comments
 (0)