It's currently hard to have multiple targets in DOM that can be replaced with new content coming from same template.
A possibile fix could be to add a root attribute that constraints the application of the target selector to a specific node in the dom structure.
Thinking ...