title: Gulp convert directory of files and their contents to a JavaScript file
body: <p>I would like to be able to setup my Gulp build system to do the following: scan a directory of files and store each file's contents as the value in a JavaScript object.</p>
  
  <p>For example, if I have the following directory structure:</p>
  
  <pre><code>templates/
    a.html
    b.html
    c/
      x.html
  </code></pre>
  
  <p>The following JavaScript will be generated:</p>
  
  <pre><code>templates["a.html"] = "&lt;Contents of templates/a.html&gt;";
  templates["b.html"] = "&lt;Contents of templates/a.html&gt;";
  templates["c/x.html"] = "&lt;Contents of templates/c/x.html&gt;";
  </code></pre>
  
  <p>Does anyone know of a Gulp plugin that will do this?</p>