This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user