title: Node.js Express not rendering html view
body: <p>so I was trying to follow a tutorial to use node.js as the front end of a wordpress site</p>
  
  <p>This one <a href="http://www.1001.io/improve-wordpress-with-nodejs/" rel="nofollow">http://www.1001.io/improve-wordpress-with-nodejs/</a></p>
  
  <p>Here is the code from server.js</p>
  
  <pre><code>var frnt = require('frnt');
  var fs = require("fs");
  var path = require("path");
  var express = require('express');
  var app = express();
  var doT = require('express-dot');
  
  // Define where the public files are, in this example ./public
  app.use(express.static(path.join(__dirname, 'public')));
  
  // Make sure this is set before the frnt middleware, otherwise you won't
  // be able to create custom routes.
  app.use(app.router);
  
  // Setup the frnt middleware with the link to the internal server
  app.use(frnt.init({
      proxyUrl: "http://localhost:8888/frnt-example/wordpress", // The link to your wordpress site
      layout: false // We simplify this example by not using layouts
  }));
  
  // define rendering engine
  app.set('views', path.join(__dirname, "views"));
  app.set('view engine', 'html' );
  app.engine('html', doT.__express );
  
  // respond with "Hello World!" on the homepage
  app.get('/', function (req, res) {
    res.send('./views/index.html');
  });
  
  app.listen(8080); // listen to port 8080
  </code></pre>
  
  <p>It keeps outputting the following</p>
  
  <p>./views/index.html</p>
  
  <p>Rather than rendering the html?</p>