- From: Eric Newport <notifications@github.com>
- Date: Tue, 14 Nov 2017 01:59:20 +0000 (UTC)
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 14 November 2017 01:59:43 UTC
I guess what I don't get is why is this from Apple's proposal substantively less difficult to standardize on:
```html
<template type="with-for-each" id="list">
<ul>
{{foreach items}}
<li class={{class}} data-value={{value}}>{{label}}</li>
{{/foreach}}
</ul>
</template>
```
Than something like this?
```html
<template id="list">
<ul>
<loop through="items" val="item">
<li class={item.class} data-value={item.value}>{item.label}</li>
</loop>
</ul>
</template>
```
In both cases, an arbitrary templating syntax is being invented separate and apart from the current HTML spec and only parsed within `<template>` elements. Why would making the syntax used for that HTML-like or HTML-inspired be significantly more difficult than just using mustache or similar?
--
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-344121155
Received on Tuesday, 14 November 2017 01:59:43 UTC