- From: Thomas Di Grégorio <notifications@github.com>
- Date: Mon, 06 Apr 2020 07:57:20 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 6 April 2020 14:57:33 UTC
Why not : `<template src="my-include.html" in-place>` Meaning being able to load template by external source adding a `src` attribute, the content take place in the `<template>` element as it was written there. And add the ability to render the template tag's content like a normal element with an `in-place` attribute (or whatever name, it can be also `disabled` to tell to disable template's element normal behavior) . It offers the ability also to load templates without `in-place` attribute for no render, and still use it with JS. ------------- Another more exotic syntaxes can be: `<div src="my-part.html">placeholder</div>` >>> Alowing each element to load it's content `<content src="my-part.html">placeholder</content >` >>> A root document's content element -- 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/849#issuecomment-609846027
Received on Monday, 6 April 2020 14:57:33 UTC