lib/Preview.js
function generateEmbeds(config) {
  glob(config.src + '/**/*.html', {}, (err, files) => {
    files.forEach(file => generateEmbed(config, file));
  });
}
function generateEmbeds(config) {
  glob(config.src + '/**/*.html', {}, (err, files) => {
    files.forEach(file => generateEmbed(config, file));
  });
}
function generateEmbeds ( config ) { glob ( config . src + '/**/*.html' , { } , ( err , files ) => { files . forEach ( file => generateEmbed ( config , file ) ) ; } ) ; }
Reads all html files in a folder and generates the embeds.
Reads all html files in a folder and generates the embeds .