title: Node Ejs module, include not working
body: <p>Im having some trouble including a html snippets into my index.html .
  I have tried to follow, the ejs documentation but I just can't seem to make it work.</p>
  
  <p>Directory Structure:</p>
  
  <pre><code>project
  -public
  --assets
  ---css
  ---images
  ---js
  --Index
  ---index.html + index.css and index.js
  --someOtherPageFolder
  -views
  --partials
  ---partials1.ejs
  --index.ejs
  --layout.ejs
  -server.js
  </code></pre>
  
  <p>This is my server.js (<em>NEW</em>):</p>
  
  <pre><code>var express  = require("express");
  var partials = require("express-partials");
  var http     = require('http');
  var path     = require('path');
  var app      = express();
  
  app.get("/", function(req, res) {
    res.redirect("index");
  });
  
  app.configure(function(){
    app.set('port', process.env.PORT || 8888);
    app.set('views', __dirname + '/views');
    app.set('view engine', 'ejs');
  
    app.use(partials());
    app.use(express.favicon());
    app.use(express.logger('dev'));
    app.use(express.json());
    app.use(express.urlencoded());
    app.use(express.methodOverride());
    app.use(express.bodyParser());
    app.use(app.router);
    app.use(express.static(path.join(__dirname, 'public')));
  });
  
  http.createServer(app).listen(app.get('port'), function(){
        console.log('App listening on port ' + app.get('port'));
      });
  </code></pre>
  
  <p>This is my test.ejs:</p>
  
  <pre><code>&lt;h1&gt;This is test!&lt;/h1&gt;
  </code></pre>
  
  <p>And this is where I want the html snipp to go:</p>
  
  <pre><code>&lt;div id="sb-site"&gt;
      &lt;div class=""&gt;
          &lt;p&gt;Not test&lt;/p&gt;
          &lt;%- include test.html %&gt; 
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What am I doing wrong?
  Is there also a way for me to do this and use .html instead of .ejs (Im using eclipse and it doesn't support .ejs files)</p>