htmlTemplate function

Process an HTML template