mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 04:45:56 +00:00
Merge branch 'main' into next
This commit is contained in:
commit
4e3b7dd8b5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user