Convert index.html to PHP templates