This commit is contained in:
2020-09-04 21:48:36 +00:00
parent e9341ea972
commit e854688523
4 changed files with 25 additions and 21 deletions

View File

@@ -6,14 +6,16 @@ function ayRegisterHelpers() {
Handlebars.registerHelper("aymarkdown", function (astring) {
return marked(astring, { breaks: true });
});
Handlebars.registerHelper("ayJSON", function (obj) {
return JSON.stringify(obj, null, 3);
});
}
function ayPreRender(theReportData) {
function ayPreRender(theReportData) {
if (typeof reportPreRender === "function") {
return reportPreRender(theReportData);
}else{
} else {
return theReportData;
}
}