3.使用 express 檢視檢視(參見 2.EJS 檔案......在此之前)
app.get("/",function(req,res){
response.render("index",{ //render the index when root(/) is requested
message:"rendered view with ejs"
});
});
app.get("/",function(req,res){
response.render("index",{ //render the index when root(/) is requested
message:"rendered view with ejs"
});
});