express 1:setting up the views


Example

var express=require("express");    //express is included
var path=require("path");    //path is included 

var app=express();    //app is an Express type of application

app.set("views",path.resolve(__dirname,"views"));    //tells express about the location of the views in views folder
app.set("view engine","ejs");    //tells express that ejs template engine is used