Async version of resolveIncludes.
Expand all [[include]] directives using an async fetcher, allowing page content to be loaded from async sources such as databases.
Optional
const expanded = await resolveIncludesAsync(source, async (ref) => { return await db.getPageContent(ref.page);});const ast = parse(expanded); Copy
const expanded = await resolveIncludesAsync(source, async (ref) => { return await db.getPageContent(ref.page);});const ast = parse(expanded);
Async version of resolveIncludes.
Expand all [[include]] directives using an async fetcher, allowing page content to be loaded from async sources such as databases.