Use templating to generate HTML