title: In Node.js, reading a directory of .html files and searching for element attributes inside them?
body: <p>I can't even begin to think about how this would be done. Basically, imagine a folder and it has a static website in it. It has all the images, styles and html files etc. With my Node application, I want to look inside this folder, get just the .html files only and then pick just the .html files that have the attribute 'data-template="home"' inside them.</p>
  
  <p>I know this seems a little odd maybe, but it's for a project that requires the user to upload their static website files and then my Node app does things to them files.</p>
  
  <p>Anyhow, was just curious about iterating over certain filetypes and then looking inside them... Any help with approaching this would really help me.</p>
  
  <p>Many thanks, James</p>