title: Node.js - EJS example
body: <p>I am trying to use Embedded Javascript renderer for node. I installed it using npm, as given here: <a href="https://github.com/visionmedia/ejs" rel="noreferrer">https://github.com/visionmedia/ejs</a></p>
  
  <p>And I have the following code, but it does not seem to work:</p>
  
  <pre><code>var connect = require('connect'),
   ejs = require('ejs');
  
  var server = connect.createServer(
      connect.bodyDecoder(),
      connect.methodOverride(),
      connect.staticProvider(__dirname + '/public'),
      function(req,res) {
       ejs.render('hi');
      }
  );
  
  
  server.listen(9000);
  </code></pre>
  
  <p>Any help greatly appreciated.</p>