Using template to generate HTML pages.