As sections are displayed seperately on each page, you should be able to use exactly the same code. Using templates for sections that are displayed on one page is out of the scope of complex survey. If this functionality is needed we should incorporate it in our assessment specifications.