mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:25:57 +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);
|
return dayjs(date).format(format);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Handlebars.registerHelper('isNull', (value) => {
|
||||||
|
return _.isNull(value);
|
||||||
|
});
|
||||||
|
|
||||||
export async function getRenderContent(templateEngine, content, variables, localVariables, defaultParse) {
|
export async function getRenderContent(templateEngine, content, variables, localVariables, defaultParse) {
|
||||||
if (content && templateEngine === 'handlebars') {
|
if (content && templateEngine === 'handlebars') {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user