Re: [w3c/webcomponents] [templates] Template proposal essentials (shave the mustache) (#739)

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