rendering an ejs template

master
Matt Huntington 9 years ago
parent 2b7ee4a579
commit 7b26006de2

@ -17,6 +17,7 @@
},
"homepage": "https://github.com/mahuntington/runs#readme",
"dependencies": {
"ejs": "^2.5.1",
"express": "^4.14.0"
}
}

@ -3,7 +3,7 @@ var app = express(); //create application variable
app.get('/', function(request, response){
response.send('oh hai!');
response.render('index.ejs');
});
//params: port, callback to execute once listening has begun

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<h1>Hello!</h1>
</body>
</html>
Loading…
Cancel
Save