title: Create HTML dynamically depending of Node variables
body: <p>I am using Node.js with Express as a server. The user can upload a .CSV file with data. I'm parsing these data and store this in a main array composed of arrays (each line = one array). For now, I'm rendering a page (made with Pug) with this variable.</p>
  
  <pre><code>res.render('index', { rows });
  </code></pre>
  
  <p>The page is rendering as I would like to the user. However, I'd like to save the rendered "index" in a HTML file. The goal is to convert the HTML file into a PDF (which already works as a result of previous tests with static HTML).</p>
  
  <p>Is it possible to save the rendered page as a HTML file? I'd like to take advantage of the feature of passing variable through the render function.</p>
  
  <p>Another solution would be to generate by myself the HTML file, and do my own logic inside the Node.js route. That seems a long and useless solution since the render function do it well. I just need to save it instead of rendering it.</p>