Generate index.html and api.html from the template