title: How to use node modules (like MomentJS) in EJS views?
body: <p>To use MomentJS in views/custom.ejs, what is the correct way (if any)?</p>
  <ol>
  <li><p>Server side</p>
  <p>routes/index etc we can easily use <code>require('moment');</code> etc and it works fine.</p>
  </li>
  <li><p>Server Side (EJS views)</p>
  <p>views/custome.ejs, something like <code>&lt;% var m = require('moment'); %&gt;</code> doesn't work</p>
  </li>
  </ol>
  <p>I am using ExpressJS with EJS as the template engine.</p>