W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [webcomponents] HTML Parsing and the <template> element

From: Brian Kardell <bkardell@gmail.com>
Date: Wed, 8 Feb 2012 22:31:03 -0500
Message-ID: <CADC=+je54CFWtKCFdh_TNZ+K8Z-dQyWTPOBfFWhnUfNMr1_hRQ@mail.gmail.com>
To: Ryosuke Niwa <rniwa@webkit.org>
Cc: Erik Arvidsson <arv@chromium.org>, Henri Sivonen <hsivonen@iki.fi>, Ian Hickson <ian@hixie.ch>, Rafael Weinstein <rafaelw@google.com>, Adam Barth <w3c@adambarth.com>, public-webapps <public-webapps@w3.org>, Dimitri Glazkov <dglazkov@chromium.org>
Then why not something like

<template id="a">world</template>
<template id="b">hello <partial with="a"></template>
On Feb 8, 2012 10:22 PM, "Ryosuke Niwa" <rniwa@webkit.org> wrote:

> On Wed, Feb 8, 2012 at 5:20 PM, Brian Kardell <bkardell@gmail.com> wrote:
>
>> Are you essentially suggesting partials?  Basically, one template can
>> contain another only by reference?  Then you have something like a
>> corresponding tag or macro-ish thing whereby you can reference
>> (functionally include) on themplate from another?
>>
>> That sidesteps the whole nested template parsing pretty nicely and its
>> what a lot of logicless template approaches do.
>>
> I think that's what Adam is suggesting and Erik, Dimitri, and Rafael are
> advocating nested templates.
>
> - Ryosuke
>
>
Received on Thursday, 9 February 2012 03:31:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT