I have a requirement to generate an HTML file from data that will be generated dynamically from a single recordset of a number of database tables. The HTML file will be used as an attachemment in an Email. I can generate the HTML file by manually writing the HTML code but would like to use some sort of templating engine so that i dont have to code the structure of the HTML file and any common aspects of the HTML document (e.g. header banners, footers etc) . I have used Tiles before for a web based struts application. The application i used was based on JSP but the file i would like to generate is pure HTML. I have a requirement to generate an HTML file f