html-to-render.js
function getFiles(folder = srcFolder){
  let all = [];
  let f = fs.readdirSync(folder);
  for(file of f){
    all.push(path.join(folder,file))
    if(fs.lstatSync(path.join(folder,file)).isDirectory()){
      all = all.concat(getFiles(path.join(folder,file)));
    }
  }
  return all;
}
function getFiles(folder = srcFolder){
  let all = [];
  let f = fs.readdirSync(folder);
  for(file of f){
    all.push(path.join(folder,file))
    if(fs.lstatSync(path.join(folder,file)).isDirectory()){
      all = all.concat(getFiles(path.join(folder,file)));
    }
  }
  return all;
}
function getFiles ( folder = srcFolder ) { let all = [ ] ; let f = fs . readdirSync ( folder ) ; for ( file of f ) { all . push ( path . join ( folder , file ) ) if ( fs . lstatSync ( path . join ( folder , file ) ) . isDirectory ( ) ) { all = all . concat ( getFiles ( path . join ( folder , file ) ) ) ; } } return all ; }
get all file paths in a folder recursively
get all file paths in a folder recursively