Closed joshuabenuck closed 4 years ago
This must be a scope of variable problem when I moved the implementation out of the meta-site that it initially served.
I agree. Perhaps we could add a parameter to the function that is the metaPages object to use when adding the pages? Or we could just return an object with the created pages and callers could Object.assign
to merge it with their local metaPages?
Steps to reproduce:
seran-scrape
as a peer toseran-wiki
seran-wiki
run./seran-wiki.sh ../scrape.ts ./meta-sites
http://seran.localtest.me:8000/index.html?page=federation-scraper
Expected results:
scrape.localtest.me
meta-site has a page namedFederation Scraper
.