Re: [w3c/webcomponents] Discussion: Templates that Don't Destroy Element References (#777)

@rniwa I wonder if we want to consider a more generic name for `TemplatePart`, since they can be attached directly to non-template DOM?

Also, another approach could be a template tag that does what you have in the very first example and directly creates an instance. Maybe something like:

```js
let text = 'hello';
const br = document.createElement('br');
const instance5 = htmlFragment`<b>${text}</b>${suffix}`;
document.body.appendChild(instance5);
instance5.update({0: 'goodbye'});
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/777#issuecomment-445372825

Received on Friday, 7 December 2018 21:36:13 UTC