supporting elements in template container before and after data-template