Re: [w3c/webcomponents] [templates] If HTML Template Instantiation proposal is adopted, consider a HTML-native syntax (#695)

May I ask your thoughts on this:
```
<ul class="todo-list" :for="{{ item in todos }}">
  <li class="todo-item" :if="{{ !item.done }}">{{ item.text }}
</ul>
```
vs proposed this:
```
<ul class="todo-list">
  <template directive="foreach" expression="todos">
    <template directive="if" expression="!item.done">
      <li class="todo-item">{{ item.text }}
    <template>
  </template>
</ul>
```

-- 
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/695#issuecomment-714801629

Received on Thursday, 22 October 2020 22:40:35 UTC