function writeFile(staff) {
    // Use a for-of loop here to generate HTML
    let html = fs.readFileSync('./src/teamRosterTop.html');
    for (const employee of staff) {
        html += render(employee);
    }
    html += fs.readFileSync('./src/teamRosterBottom.html');
    // Write final html content to the distribution folder
    fs.writeFile('./dist/index.html', html, err => {
        console.error(err);
    });
}
// Uses code from render.js to create cards from staff array values
Uses code from render.js to create cards from staff array values
Uses code from render . js to create cards from staff array values
function writeFile(staff) {
    let html = fs.readFileSync('./src/teamRosterTop.html');
    for (const employee of staff) {
        html += render(employee);
    }
    html += fs.readFileSync('./src/teamRosterBottom.html');
    fs.writeFile('./dist/index.html', html, err => {
        console.error(err);
    });
}
function writeFile ( staff ) { let html = fs . readFileSync ( './src/teamRosterTop.html' ) ; for ( const employee of staff ) { html += render ( employee ) ; } html += fs . readFileSync ( './src/teamRosterBottom.html' ) ; fs . writeFile ( './dist/index.html' , html , err => { console . error ( err ) ; } ) ; }
Uses code from render.js to create cards from staff array values
Uses code from render . js to create cards from staff array values
// Use a for-of loop here to generate HTML // Write final html content to the distribution folder