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 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:38 UTC