[frontend] Template out the index file.