- From: Yuri Karadzhov <notifications@github.com>
- Date: Sat, 24 Feb 2018 02:00:31 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 24 February 2018 10:01:31 UTC
My point is, having basic mechanism that turn array of strings into a DOM and Parts e.g.
```['<div class="', "">", "</div>"] -> DOM(<div></div>), Parts```
we can easily move to having a tag that turn template strings into a DOM and parts (saving result in a cache)
```
html`
<div class="${name}">
${name ? html`<div>${value}</div>` : ''}
</div>` -> DOM(<div></div>), Parts
```
and from this point we can move to declarative templates
```
<div class="${name}">
${name ? html`<div>${value}</div>` : ''`}
</div>
```
--
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/739#issuecomment-368216879
Received on Saturday, 24 February 2018 10:01:31 UTC