Heads-up: this could be more of a question for the group in which HTML custom elements are discussed but I figure the intersection with Polymer developers is rather large —
I'm trying to understand whether it is possible to declare a custom HTML element that can wrap arbitrary subelements and 'yield' the rendering of those subelements at a determined insertion point. The syntax below is approximative but should provide a goods idea of what I'm trying to do
<my-list header="My Header" footer="My Footer">
<li>foo</li>
<li>bar</li>
</my-list>
<dom-module id="my-list">
<template>
<p>{{header}}</p>
<ul>
<!-- what goes here? can I automatically insert the <li>s declared above?>
</ul>
<p>{{footer}}</p>
</template>
</dom-module>
This is a simple example — in the greater scheme of things, I'd like to be able to insert/handle arbitrary content whose type may not be known ahead of time (e.g. a <div> or <my-other-element>, etc…).
Basically I'd like to know whether custom HTML elements have the possibility to act as external layouts for other elements as opposed to just encapsulated templates.
Cheers,
-Julien