recursive parse template and auto index.html in http server