title: Require in mustache template the same on node as on browser
body: <p>This question uses Hogan as an example but applies to any template.</p>
  
  <p>I am trying to make something isomorphic (work on both the client and server). On the client if I require in a mustache file:</p>
  
  <pre><code>var tpl = require('./something.ms');
  </code></pre>
  
  <p>Then browserify + a transform detects this is a mustache file by extension and <code>tpl</code> is an Object and one of the functions is <code>.render</code>.</p>
  
  <p>I would like exactly the same result if I was to run the above line with NodeJS.</p>
  
  <p>By default Node just expects this file to be a javascript file and so the result just looks like this and errors:</p>
  
  <pre><code>(function (exports, require, module, __filename, __dirname) { &lt;h1&gt;some html&lt;/h1&gt; ...
  </code></pre>