I'm trying to use express with Pug (Jade) to render/display a page and the function get() is coming back undefined with warnings...
I've run:
npm install express --save npm install pug --save Heres the top of the JS file with undefined get method...
var app = require('express')(); app.set('view engine', 'pug'); app.get('/', function (req, res) { console.log("test"); //line isn't reached res.render('index', { title: 'Hey', message: 'Hello there!' }) }); No errors when running, it just doesn't work.