mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 01:36:52 +00:00
feat: add isNull helper
This commit is contained in:
parent
1d0947beea
commit
5086fe7017
@ -197,6 +197,10 @@ Handlebars.registerHelper('dateFormat', (date, format, tz) => {
|
||||
return dayjs(date).format(format);
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('isNull', (value) => {
|
||||
return _.isNull(value);
|
||||
});
|
||||
|
||||
export async function getRenderContent(templateEngine, content, variables, localVariables, defaultParse) {
|
||||
if (content && templateEngine === 'handlebars') {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user