I'm new to Express and Jade and I'm getting the following error when rendering a view.
TypeError: Property 'engine' of object # is not a function
My configuration is as follows:
var express = require('express');
var http = require('http');
var app = express();
app.set("views", __dirname + "/../views");
app.set("view engine", "jade");
The app crashes on the following rendering function:
app.get("/", function(request, response) {
response.render("game.jade", { message: "this is a variable" });
});
The view exists in the views directory and contains just some simple jade test html.
Any idea how to solve this?