create a template and a html generator