Add subtemplates
Make subtemplates preserve the DOM tree