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

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