Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions patching-explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,24 @@ To support multiple ranges, processing instructions can be named. Any number of
</template>
```

Multiple `<?marker>` elements without place-holder content is also supported in a similar manner:

```html
<div marker="results">
<?marker name="part-one">
<hr>
<?marker name="part-two">
</div>

<template for="results#part-one">
<p>Actual 1st part of the content</p>
</template>

<template for="results#part-two">
<p>Actual 2nd part of the content</p>
</template>
```

A few details about patching:

- Templates with a valid `for` attribute are not attached to the DOM, while templates that don't apply are attached to signal an error.
Expand Down