a-parris21 / ap21-ssg

repos for DPS909 release 0.1
MIT License
0 stars 1 forks source link

index.html file not generated in recursive version #26

Open a-parris21 opened 2 years ago

a-parris21 commented 2 years ago

index.html file is not being generated

The array which tracks the filenames of the generated HTML files contains the correct data in the last recursive parseFIle call - but when the caller function (generateWebsite which calls parseFile initially) proceeds to the next line of execution, the array that tracks the filenames is still empty — so generateIndex has no filenames to work with; thus the index.html file is not generated.