title: How can I access the content from a file in another file?
body: <p>I am currently trying to build a specific app: 
  I want to transform xml-files in a directory and have a <code>&lt;div&gt;</code> created for each of them. </p>
  
  <p>this is my app.get (dirname is a var I set up, containing the path to the xml files)</p>
  
  <pre><code>app.get('/test', function(req, res){
      res.render("test", { fs: fs, dirname: dirname, files: files});
  });
  </code></pre>
  
  <p>for the route in question, while my test looks like the following: </p>
  
  <pre><code>&lt;div class="container"&gt;
    &lt;%  files.forEach(function (files) { %&gt;
       &lt;div&gt;
          &lt;%= files %&gt;
      &lt;/div&gt;
    &lt;%  }); %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So, at the moment I am generating a list of files, however, I want for every file to get its own div. These I want later to be grouped inside another div (that's the container, I have in my aforementioned code) instead of <code>&lt;%= files %&gt;</code>, what would I need to achieve this? ( I am setting up SaxonHEC together with saxon-node, as soon, as it is published in a current version on npm)</p>