Moving section/option HTML output to a template.