Exclude Compose

Is there a way I can exclude the compose element from the output to the DOM?

I have a template containing SVG elements, amongst which I have included a element to bring in dynamic SVG content. Although the content is generated an inserted into the DOM at the right location, the rendering is not visible. I suspect it is because the new content is wrapped in a compose element that SVG does not understand. What I would like to try is to output the SVG content without the containing compose element to produce a fully valid SVG document in DOM.

Add a “containerless” attribute to the compose element itself.

<compose view="./some-svg.html" containerless></compose>

That should do it.


Add it did. Thank you.