Convert index.html to templates