added custom data property for template instantiation (#716)
parent
702474dca1
commit
4f0650d0b7
|
@ -90,6 +90,7 @@ async function instantiatePageTemplate(
|
||||||
templateName: string,
|
templateName: string,
|
||||||
intoCurrentPage: string | undefined,
|
intoCurrentPage: string | undefined,
|
||||||
askName: boolean,
|
askName: boolean,
|
||||||
|
customData: any = undefined,
|
||||||
) {
|
) {
|
||||||
const templateText = await space.readPage(templateName!);
|
const templateText = await space.readPage(templateName!);
|
||||||
|
|
||||||
|
@ -107,6 +108,7 @@ async function instantiatePageTemplate(
|
||||||
created: "",
|
created: "",
|
||||||
lastModified: "",
|
lastModified: "",
|
||||||
perm: "rw",
|
perm: "rw",
|
||||||
|
data: customData,
|
||||||
};
|
};
|
||||||
// Just used to extract the frontmatter
|
// Just used to extract the frontmatter
|
||||||
const { frontmatter } = await renderTemplate(
|
const { frontmatter } = await renderTemplate(
|
||||||
|
|
Loading…
Reference in New Issue