Creating a html file on the fly from grid

Hello,
Do you know how to create HTML files from a Grid record on the fly? Let’s say you have an online B2B/Shop and you want to generate an HTML page for each product, rather than a detail product Grid record, in order to help the Google indexing process.
How will look the return mechanism into the Grid from the HTML file?
Maybe you can share some ideas.
Thanks a lot!