W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

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

From: Scott González <scott.gonzalez@gmail.com>
Date: Wed, 25 Apr 2012 07:46:39 -0400
Message-ID: <CAO8i3iegiFa2vEKSjVZaW7HwFeVaLJHDFCQ4q3KFEkp8UodQiA@mail.gmail.com>
To: Kornel Lesiński <kornel@geekhood.net>
Cc: public-webapps@w3.org
You can't assume that the person parsing the template is the person who
defined the template. It's common for templates to be included as options
for plugins and frameworks, and the developer writing the template doesn't
control the parsing of the template. Of course, a good plugin or framework
would provide the necessary hooks to allow the developer to execute
whatever scripts they need at the appropriate time.


2012/4/25 Kornel Lesiński <kornel@geekhood.net>

> On Wed, 25 Apr 2012 00:48:15 +0100, Clint Hill <clint.hill@gmail.com>
> wrote:
>
>  1) Templates that cleanly include "</script>".
>>
>
> What's the use-case for including <script> in a template? Can't code using
> the template simply invoke functions it needs?
>
> --
> regards, Kornel Lesiński
>
>
>
Received on Wednesday, 25 April 2012 11:47:13 GMT

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