Execute template to set HTML