mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 20:27:49 +08: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