in reply to Populating an HTML Template

I'm not sure what you're asking for here. Your task description doesn't make any sense to me, but the code you posted looks reasonable enough. Does it work? If not, can you describe the problem you're encountering?

-sam