Add beginner static files

This commit is contained in:
Stefan Feješ
2018-04-07 11:25:03 +02:00
parent 571197d6d8
commit dda84056c5
3 changed files with 30 additions and 0 deletions

View File

@ -64,6 +64,9 @@ snippets = util.readSnippets(snippetsPath);
try {
startPart = fs.readFileSync(path.join(staticPartsPath, 'page-start.html'), 'utf8');
endPart = fs.readFileSync(path.join(staticPartsPath, 'page-end.html'), 'utf8');
beginnerStaticPart = fs.readFileSync(path.join(staticPartsPath, 'beginner-page-start.html'), 'utf8');
endStaticPart = fs.readFileSync(path.join(staticPartsPath, 'beginner-page-end.html'), 'utf8');
} catch (err) {
// Handle errors (hopefully not!)
console.log(`${chalk.red('ERROR!')} During static part loading: ${err}`);