Generate front page HTML from a template