It's tough to do that without duplicating the HTML in each template.

We either need to add logic to the template that we're importing from, and therefore we'll have to pipe in something via the context... Or we can do it via JavaScript. 

I've never really found a nice pattern for doing this.