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