Merge branch 'main' into next

This commit is contained in:
GitHub Actions Bot 2024-09-09 09:33:21 +00:00
commit 4e3b7dd8b5

View File

@ -162,6 +162,11 @@ const getVariablesData = (localVariables) => {
export async function getRenderContent(templateEngine, content, variables, localVariables, defaultParse) {
if (content && templateEngine === 'handlebars') {
try {
try {
await replaceVariableValue(content, variables, localVariables);
} catch (error) {
return null;
}
const renderedContent = Handlebars.compile(content);
// 处理渲染后的内容
const data = getVariablesData(localVariables);