title: Can I pass variable to required file?
body: <p>In express, I'm trying to move my minification to a requierd file:</p>
  
  <p>app.js:</p>
  
  <pre><code>var app = express();
  var minify = require("./minify.js");
  </code></pre>
  
  <p>In that file I try to set my template engine.</p>
  
  <p>minify.js:</p>
  
  <pre><code>var app = express();
  app.engine('html', mustacheExpress());
  </code></pre>
  
  <p>Later when I try to use to use the rendering engine in app.js, I get the error that no template-engine is set. It works if I run it all in the same file. I think the problem is that I declare the app-variable twice. How can I pass the app-variable into minify.js?</p>