Skip to content

Instantly share code, notes, and snippets.

@dawehner
Created February 24, 2019 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dawehner/f7929dced96059d0fb3625e561ef1829 to your computer and use it in GitHub Desktop.
Save dawehner/f7929dced96059d0fb3625e561ef1829 to your computer and use it in GitHub Desktop.
const contentFiles = findPages();
const renderedPages = Promise.all(findPages().map(renderPage));
renderedPages
.then(
R.zipObj(contentFiles)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment