Documentation / @imvu/chkn / expandTemplate
Function: expandTemplate()
ts
function expandTemplate(delta, imports): TemplateDict;Defined in: packages/chkn/src/template.ts:121
Expand a delta-form template: replace each __DATAIMPORT with the imported template (looked up by URL in imports, already expanded) and prune deletion markers. Returns a new dictionary; the input is not modified.
Parameters
| Parameter | Type |
|---|---|
delta | TemplateDict |
imports | ReadonlyMap<string, TemplateDict | null> |