refactor: move cardlayer to just load store
This commit is contained in:
@@ -91,7 +91,7 @@ export function processVariables<T extends JSONObject> (body: string, currentRow
|
||||
const frontMatter = csv.frontmatter;
|
||||
if(key in row) return row[key];
|
||||
if(frontMatter && key in frontMatter) return frontMatter[key];
|
||||
return '';
|
||||
return `{{${key}}}`;
|
||||
}
|
||||
|
||||
return body.replace(/\{\{(\w+)\}\}/g, (_, key) => `${replaceProp(key)}`);
|
||||
|
||||
Reference in New Issue
Block a user