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

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 UTC